Use Environment.SpecialFolder.ProgramFilesX86 instead of
Environment.SpecialFolder.ProgramFiles. Both values should be defined on a
32-bit machine.

-----Original Message-----
From: Chirag Goradia [mailto:chiraggora...@gmail.com] 
Sent: Thursday, July 15, 2010 2:46 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] About running "Any CPU" custom EXE from 32bit MSI on
64bit machine

Hi everyone,

We are running custom EXEs ( .NET 2.0 console application ) built with "Any
CPU" platform from a 32bit MSI on 64bit machine.
In the custom EXE, we use *
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)* to
execute
some custom logic on our files installed in the ProgramFiles folder path.

The issue is on 64bit machine:
32bit MSI installs files to C:\Program Files (x86)\
custom EXE runs logic in C:\Program Files\  ... we think this is because it
was built for "Any CPU" platform

In the <CustomAction > node, we tried to set Win64="no" so that it runs the
custom EXE as if it were on 32bit machine. However, still the custom EXE
runs logic in C:\Program Files\  instead of C:\Program Files (x86)\


Do you have any suggestions ?

Thanks
Chirag
----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to