Hi Everyone,
Long time no message!
First of all if I create a 64 bit project and add a custom action should that custom action have the correct type inserted into the database? It seems to have put a 6 in the type. The custom action in question is ran as part of a modify. The install is ok in that it puts the information in the correct place under HKEY_LOCAL_MACHINE i.e. not in the WOW6432Node. However when I come to retrieve the data (a directory location) it looks in the WOW6432Node and cannot find it. I proved this by putting the requisite keys in the WOW6432Node. I then discovered that to run a script as 64bit it should have a different type in the database as per: -
Custom action types: -
http://msdn.microsoft.com/en-us/library ... s.85).aspx
Type 6 is a VBScript.vbs file BUT on a 64 bit system you need type 4102! According to: -
http://msdn.microsoft.com/en-us/library ... s.85).aspx
editing this type into the table for this custom action made the Modify operation work i.e. it looked in the 64 bit part of the registry for the data.
Why when I remove and reinsert the CA does it not change the type to 4102?
Hope this makes sense. I have not experienced the error I am getting with this CA in previous 64 bit versions maybe I have just been lucky!
Thoughts,
John
FOLLOW US
Get the latest news in Application Packaging