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
- :
- Rollback CA can't access variables
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
‎May 02, 2008
01:58 AM
Rollback CA can't access variables
Hi,
I'm using Install Shield 2008 Premier, and run into a bit of a problem. I have a Custom Action for which I must set a rollback one (type 1318 vbScript, In-Script Execution = Rollback Execution), but need the INSTALLDIR given by the user at install time.
Tried to access the INSTALLDIR two ways:
"
installDir = Session.Property("INSTALLDIR")
"
and
"
propArray = Split(Session.Property("CustomActionData"), ";")
installDir = propArray(0)
--and have a MSI CA (type 51) with the same mane as property name and value [INSTALLDIR] --
"
but both return a empty value for the installDir.
How can I access the INSTALLDIR on the rollback action?
Thanks,
Daniell
I'm using Install Shield 2008 Premier, and run into a bit of a problem. I have a Custom Action for which I must set a rollback one (type 1318 vbScript, In-Script Execution = Rollback Execution), but need the INSTALLDIR given by the user at install time.
Tried to access the INSTALLDIR two ways:
"
installDir = Session.Property("INSTALLDIR")
"
and
"
propArray = Split(Session.Property("CustomActionData"), ";")
installDir = propArray(0)
--and have a MSI CA (type 51) with the same mane as property name and value [INSTALLDIR] --
"
but both return a empty value for the installDir.
How can I access the INSTALLDIR on the rollback action?
Thanks,
Daniell
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 02, 2008
06:04 AM
danieluc wrote:
--and have a MSI CA (type 51) with the same mane as property name and value [INSTALLDIR] --
The Type 51 has to be scheduled before the rollback CA and the name of the property being set has to match the name of the deferred CA. As an aside, other then directory names like INSTALLDIR, all other PUBLIC properties being referenced should be added to the SecureCustomProperties property to avoid problems in UAC/Managed/Elevated installation scenarios.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 02, 2008
06:47 AM
Hi Chris,
Thanks alot, now it works as expected. I can't believe that I missed only the right place in the sequence; so close 🙂
Thanks again :beer:
Daniell
Thanks alot, now it works as expected. I can't believe that I missed only the right place in the sequence; so close 🙂
Thanks again :beer:
Daniell