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

Registry entries from substitution values

Fri Sep 12, 2003 8:30 pm

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

Sat Sep 13, 2003 10:21 am

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

Mon Sep 15, 2003 3:56 pm

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

Mon Sep 15, 2003 5:43 pm

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

Thu Sep 18, 2003 2:37 pm

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

Thu Sep 18, 2003 3:27 pm

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

Fri Sep 19, 2003 5:23 am

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

Kristian

Tue Sep 30, 2003 11:44 pm

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

Wed Oct 01, 2003 6:57 am

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”