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
- :
- VBScript Questions
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
‎Jan 25, 2012
06:08 PM
VBScript Questions
Hi,
I'm very new to Installshield Express and have 2 questions on vbScript custom actions which I am hoping you can help with:
1. atm I am getting the value of a registry key using
is this the 'prefered' (best) way of getting a registry value or is there something better?
2. Having got the value of that registry key how do I set the installer's default INSTALLDIR to that value?
Many thanks
Ian
I'm very new to Installshield Express and have 2 questions on vbScript custom actions which I am hoping you can help with:
1. atm I am getting the value of a registry key using
Set objShell = CreateObject("WScript.Shell")
value=objShell.RegRead(key)
is this the 'prefered' (best) way of getting a registry value or is there something better?
2. Having got the value of that registry key how do I set the installer's default INSTALLDIR to that value?
Many thanks
Ian
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2012
12:46 AM
Hello.
Do you know this setting?
Setting INSTALLDIR from the Registry
http://kb.flexerasoftware.com/doc/Helpnet/isxhelp18/ExpressTaskSettingINSTALLDIRfromReg.htm
It maybe will do.
Do you know this setting?
Setting INSTALLDIR from the Registry
http://kb.flexerasoftware.com/doc/Helpnet/isxhelp18/ExpressTaskSettingINSTALLDIRfromReg.htm
It maybe will do.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2012
10:23 AM
weakness wrote:
Hello.
Do you know this setting?
Setting INSTALLDIR from the Registry
http://kb.flexerasoftware.com/doc/Helpnet/isxhelp18/ExpressTaskSettingINSTALLDIRfromReg.htm
It maybe will do.
Thanks for your reply.
I had not seen this before but I've now tried it out. The problem is that some users will have the setting and some will not. When the registry key exists this method works fine but when it does not the default Installdir is set to C:\[productname] - not what I want at all!
Ian
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2012
02:42 AM
Hello.
In this case, I guess you have to create VBScript custom action or something in order to set INSTALLDIR value.
If you can retrieve a value from registory using VBScript, then you can also set INSTALLDIR value as follows VBScript code.
Session.Property("INSTALLDIR") = < PATH >
In this case, I guess you have to create VBScript custom action or something in order to set INSTALLDIR value.
If you can retrieve a value from registory using VBScript, then you can also set INSTALLDIR value as follows VBScript code.
Session.Property("INSTALLDIR") = < PATH >
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)