64 bit vbscript custom actions

This issue has been solved. See solution.
EdT's picture

OK, here's a little problem I'm trying to solve....

Sun java 64 bit edition - I want to be able to write into the 64 bit registry using a vbscript (type 38) custom action, as it has to be sequenced just before installfinalize in deferred, which means vbscript. However, it appears that the 32 bit version of wscript.exe is being called instead of the 64 bit version when the script executes.

Is there a way of ensuring that the embedded vbscript custom action runs in the 64 bit context?

EdT's picture

Think I have a solution

Solution

Yes, it's a failure to read the manual....

Adding 4096 to the attributes in the custom action table, flags a script CA as a 64 bit version. DOH !!

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

AppPkgServices's picture

SOLUTION

Please mark your comment as a SOLUTION.

EdT's picture

Had to test it first

Now marked as solution. 
Had to test it first to make sure it worked as expected, but didn't want anyone else wasting time replying to my original posting while I did the testing.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Eshwar's picture

64 bit custom actions

EdT,
I never tried adding 64 bit custom action [vbscript] and i'm sure you posted the SOLUTION.
Thanks for the solution. I'm going to work on Vista/windows 7 in the near future and this informtion will definitely help.

Thank you,
Eshwar  

Thanks,
Eshwar