I have a application developed in C#. I am creating an installer for the app using Visual Studio Setup Project.
While installation, I want to execute an exe file which differs for 32 and 64 bit respectively. So I have to use different file for 32bit and 64bit.
For executing exe file, I have added “Custom Action” and that works also. But as said, the exe file differs for system architectire. How can I knwo the architecture in installer and execute the respective file.
I tried the following :
Check the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node – If found then also it returns “” and else also returns “”, so of no use.
VersionNT – that provides only version, I am more concerned with Architecture.
How can I achieve this ? VBS can do the work or not ? I don’t know vbs, but know that it can be added to action and set its condition and little bit things like that.
If at all I create another 32bit app that detects the architecture, then also how would that work out with this suring installation ?
Any help is highly appreciated.
Thanks
Look at second comment here: http://msdn.microsoft.com/en-us/library/ms724072%28VS.85%29.aspx