This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Problem setting INSTALLDIR from registry key
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 18, 2008
11:26 AM
Problem setting INSTALLDIR from registry key
Hi,
I'm trying to set INSTALLDIR from a registry key according to the article "MSI Tip: Setting ISNTALLDIR Based on a System Search" from InstallShield Tips and Tricks.
Its not working. My files always go to the default directory, but I need them to be installed to C:\CompanyName\ProductName -- its a legacy product.
The registry key I'm pointing to is there.
I also tried to use the WHERE_ISDEV_IS exactly as written and that's not putting any files in the isdev.exe directory, either.
Open to suggestions.
Karen:confused:
I'm trying to set INSTALLDIR from a registry key according to the article "MSI Tip: Setting ISNTALLDIR Based on a System Search" from InstallShield Tips and Tricks.
Its not working. My files always go to the default directory, but I need them to be installed to C:\CompanyName\ProductName -- its a legacy product.
The registry key I'm pointing to is there.
I also tried to use the WHERE_ISDEV_IS exactly as written and that's not putting any files in the isdev.exe directory, either.
Open to suggestions.
Karen:confused:
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 18, 2008
02:02 PM
KarenMcElroy wrote:
Hi,
I'm trying to set INSTALLDIR from a registry key according to the article "MSI Tip: Setting ISNTALLDIR Based on a System Search" from InstallShield Tips and Tricks.
Its not working. My files always go to the default directory, but I need them to be installed to C:\CompanyName\ProductName -- its a legacy product.
The registry key I'm pointing to is there.
I also tried to use the WHERE_ISDEV_IS exactly as written and that's not putting any files in the isdev.exe directory, either.
Open to suggestions.
Karen:confused:
Dont use WHERE_ISDEV_IS,its totally not reliable, instead you could use a function something like
function SetinstallPath()
begin
//using reggetkey or similar function read the sting (path) into a variable svValue
MsiSetproperty(IS_HANDLE,"INSTALLDIR",svValue);
//above code will set the value of svValue to INSTALLDIR.
end;
HTH