We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rzwierz
Posts: 43
Joined: Thu Apr 19, 2007 5:23 pm

Adding 64-bit registry keys with command line arguments

Hi,

This time I ran into more severe problem (as opposed to the one from 'Registry keys created under WOW6432Node on x64 Vista').

We are creating many different installers based on one .aip file. To parametrize it we use command line editing commands. One of the commands that is essential for us is NewReg.

Everything worked fine until we wanted to create 64-bit installer. We found out that when we add registry keys using NewReg command there are *not* marked as '64-bit Components' and as a result they are put in WOW6432Node node on Vista x64.

The question is: Is there a way of telling the Advanced Installer that the component we add on command line should be marked as 64-bit?

Thanks,
Rafal
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Rafal,
The question is: Is there a way of telling the Advanced Installer that the component we add on command line should be marked as 64-bit?
I'm afraid that this is not yet possible from command line. I add this on our TODO list and will be available in a future version of AI. I'm afraid I cannot give you an ETA for now.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
rzwierz
Posts: 43
Joined: Thu Apr 19, 2007 5:23 pm

Hi Gigi,

Thanks for the response. I have been waiting for e-mail notifying me of it, but I guess I must have accidentally disabled the notification after I got response from someone advertising some porn sites (BTW I'm glad that you quickly sorted this problem out).

Could you suggest any workaround for this problem?

I was thinking of writing a VBS script which would go through .aip file and change Attributes and Type attributes of components and actions, but I'm not sure what I should change them to, as they seem to have different logic hidden to store the 64-bit flag.

Could you put some light on it?

Thanks,
Rafal
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Rafal,
I was thinking of writing a VBS script which would go through .aip file and change Attributes and Type attributes of components and actions, but I'm not sure what I should change them to, as they seem to have different logic hidden to store the 64-bit flag.
When a registry value is added a new component is created. So you need to mark the new component as 64 bit. In the VBS script you need to find the name of the component and change it's attribute from "4" (default value) to "260".

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
rzwierz
Posts: 43
Joined: Thu Apr 19, 2007 5:23 pm

Hi Gigi,

I had to abandon installer for quite a while, but now I'm back on it. Your previous suggestion helped (thank you very much) and I have a script which does what you proposed.

Unfortunately yet another problem arose. During installation I also call some VBS Scripts. Those scripts also have to be marked as 64-bit (as they put some data in the registry). I would like to mark those scripts as 64-bit without using GUI.

My question is:

Do I have to write yet another script to achieve that? Or maybe it's possible to mark scripts which are already in an .aip file as 64-bit by some command ?

If I need to write a script then could you please tell me how should I change the Type attribute of custom actions to achieve that?

Thanks so much,
Rafal
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Rafal,

New -64bit switch for NewReg command was added with the 5.0 version of Advanced Installer.
If I need to write a script then could you please tell me how should I change the Type attribute of custom actions to achieve that?
But the custom actions cannot be added from command line, why you and to specify this attribute from command line?

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
rzwierz
Posts: 43
Joined: Thu Apr 19, 2007 5:23 pm

Hi Gigi,
But the custom actions cannot be added from command line, why you and to specify this attribute from command line?
I've got an .aip file for 32-bit installer and it has some custom actions which write data to registry under HKLM\Software. I don't want to maintain separate .aip file for 64-bit installer, so I need to find a way of marking those custom actions as 64-bit during batch build process or otherwise they will put data under HKLM\Software\WOW6432Node\Software, which is not where I want them to be put.

So, strictly speaking, I don't want to add any custom actions using command line. I rather want to convert existing ones to 64-bit.

Sorry if I didn't make that clear.

Any suggestions are welcome,

Best wishes,
Rafal
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Rafal,

It is not recommended to change the custom action attributes externally Advanced Installer. The field that need to be changed is a combination of flags.

However if you really want to do that, your script should find the custom action by name and change the "Type" XML attribute according to the MSDN specifications:
http://msdn2.microsoft.com/en-us/library/aa368062.aspx

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
rzwierz
Posts: 43
Joined: Thu Apr 19, 2007 5:23 pm

Thanks a lot Gigi,

That's probably everything I need to finally create the 64-bit installer.

Best wishes,
Rafal

Return to “Common Problems”