cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Luis_Roux
Level 3

Problem with installscript custom action under 64 bits

Hello Everybody,

I have attached to this message a very simple IS2008 Basic MSI Project. It has the following relevant properties:
- Summary Information Stream -> Require Administrative Privileges: Yes.
- Releases -> SINGLE_EXE_IMAGE -> Setup.exe -> Required Execution Level: Administrator.
- The following installscript custom action is schedulled in the UI sequence after AppSearch:

function MyFunction(hMSI)
// To Do: Declare local variables.
begin
if (ExistsDir(WINDIR) = EXISTS) then
SprintfBox(INFORMATION, "MyTest", "%s exists.", WINDIR);
else
SprintfBox(INFORMATION, "MyTest", "%s does not exist", WINDIR);
endif;
LaunchApp(WINDIR ^ "NOTEPAD.EXE", "");
end;

Why:

1) Under XP, 2003 & Vista 32 bits it opens the Dialog and Launches the notepad.
2) Under 2003 & Vista 64 bits it does nothing. No dialog is shown, no notepad is run.

Thank you in advance for any help,

Luis Roux
lroux_AT_bitam.com
Labels (1)
0 Kudos
(3) Replies
Barbara
Level 7

Maybe you can use the MSI-Property WindowsFolder which gives you the same information.

Barbara
0 Kudos
Luis_Roux
Level 3

Thank you very much to All. I have moved IS2008 from my XP to a Vista 64, and I have rebuilt my project under 64 Bits and the resulting setup.exe is able to run the CAs. Apparently is not the same if you built under 32 bits and them move to 64 Bits than the other way around. Any way now my CAs are working and I'm happy. 😄
0 Kudos
Barbara
Level 7

I am wondering whats the reason for this behaviour. I am using Basic MSI Projects with InstallScript CustomActions which are built on 32bit machines, but they can be run on both 32bit and 64bit machines.

Barbara
0 Kudos