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
- :
- Re: How to export a string used for later uninstall???
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
‎Mar 17, 2008
03:16 PM
How to export a string used for later uninstall???
I have a user entry that I want to use later in an uninstallation. The user entry is stored in a global string declaration and used throughout my installation. My uninstallation does not remember that string but I need the string for my uninstallation. How?
I'm using InstallScript.
I'm using InstallScript.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2008
04:39 PM
Perhaps look into using LogWriteCustomString during installation and LogReadCustomString during uninstallation?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2008
04:58 PM
Thanks. I solved my problem. The string I needed to export was the name of an instance of a multi instance installation. I assigned that name to IFX_MULTI_INSTANCE_SUFFIX. InstallShield remembers what is in IFX_MULTI_INSTANCE_SUFFIX during the uninstallation. So all I had to do was use that variable in the uninstallation and it worked. Hope this info helps someone else someday.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 18, 2008
10:01 AM
LogWriteCustomString() may not solve my issue. According to the documentation:
"LogWriteCustomString cannot write data to the maintenance/uninstallation section of the log file (that is, the section where the setup automatically writes data, such as the files that are installed and the registry entries that are created, and from which it automatically reads data during maintenance or uninstallation). "
"LogWriteCustomString cannot write data to the maintenance/uninstallation section of the log file (that is, the section where the setup automatically writes data, such as the files that are installed and the registry entries that are created, and from which it automatically reads data during maintenance or uninstallation). "
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 18, 2008
10:04 AM
The documentation might just be saying that LogWriteCustomString puts custom data in a separate area from the file/registry/etc. data; I seem to recall that using LogWriteCustomString during installation and then opening the .ilg file with the log file viewer showed the special location used for custom strings...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 18, 2008
12:46 PM
That worked. I added LogWriteCustomString() to the end of my OnFirstUIBefore, then called LogReadCustomString() in my uninstall function and... presto.... the string I needed showed up. Thanks Robert.