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
- :
- Delete folders and files from installed path during unistallation
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
Jul 15, 2013
06:25 AM
Delete folders and files from installed path during unistallation
Some temporary files and folders are created in the subfolders of the installation folder during installation. These temporary folders and files are not getting deleted during unistallation.
In the script the following is written:
MsiGetProperty(hMSI, "INSTALLDIR", sCurrrPath,nvBuf );
In the script during unistallation INSTALLDIR or sCurrrPath is always returning c:\ProgramFiles even though the installation is in some d:\temp or f:\installpaht\ path.
To Delete directory :
sCurrrPath = sCurrrPath ^ Subfoler;
DeleteDir (sCurrrPath, ALLCONTENTS);
So how to get the installed path during unistallation?
In the script the following is written:
MsiGetProperty(hMSI, "INSTALLDIR", sCurrrPath,nvBuf );
In the script during unistallation INSTALLDIR or sCurrrPath is always returning c:\ProgramFiles even though the installation is in some d:\temp or f:\installpaht\ path.
To Delete directory :
sCurrrPath = sCurrrPath ^ Subfoler;
DeleteDir (sCurrrPath, ALLCONTENTS);
So how to get the installed path during unistallation?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 19, 2013
06:40 AM
Hi you can use the registry entry and from there installpath and uninstallpath can be obtained.