Registry entries from substitution values - Advanced Installer Community

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!

redixon
Posts: 13
Joined: Wed Jul 30, 2003 10:13 pm
Location: Chatanooga, TN
Contact: Website

Registry entries from substitution values

Sorry about the subject line, but I didn't know how else to phrase it. I need to make the follow registry entry:
HKEY_LOCAL_MACHNE\KEY 1\KEY 2\FINAL KEY = [ProgramFilesFolder][Manufacturer]\[ProductName]

The key value needs to hold where the program is stored. Is this possible?
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

WinInst supports it, but AdvInst does not have an UI for it yet. You can do it though, by giving the reg entry the value [#file_id].

It will be replaced at the install time with the full path to the installed file. But to find out the file_id you have to add the files, save the AIP, open it in a text editor, find the <COMPONENT cid="caphyon.advinst.msicomp.MsiFilesComponent"> with the row corresponding to your file, then pick the value of the File= filed.

Sorry if it's too complicated, we'll have an UI for it in the future.
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
redixon
Posts: 13
Joined: Wed Jul 30, 2003 10:13 pm
Location: Chatanooga, TN
Contact: Website

Cata wrote:WinInst supports it, but AdvInst does not have an UI for it yet. You can do it though, by giving the reg entry the value [#file_id].
Do you put the brackets around the file_id?
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Yes. You have to put both the brackets and the # sign.
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
breakpoint
Posts: 5
Joined: Thu Sep 18, 2003 2:30 pm

how to run my program on system start up

i tried to use HKLM\Software\Microsoft\Windows\Currentversion\Run\ to run my program on system start up. when i tried to create a new value myprog="[#8CFB1EF3-9366-4CCF-9027-73F4D64E5B2C]" <-- component id of my exe, the registry entry is blank.

how can i do this?
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Please read this thread again carefully: you need to put the value of you file identifier, not your component GUID.
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
breakpoint
Posts: 5
Joined: Thu Sep 18, 2003 2:30 pm

thanks

i may have been confused because of the different 'name' used like [#file_id], file=filed. anyway, got it working now, and thanks!
Kristian

Hi,

I just did what the above discussion is about. Splended.

However is it possible to set a path to a folder instead of a file?

Thanks,

Kristian
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Unfortunately, there is no simple solution, no...

You would need a component with a folder as its key and Advanced Installer can't yet produce those (because it doesn't need to).

In a future version, it is on our todo list.
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”