cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kadali_Prasad
Level 3

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?
Labels (1)
0 Kudos
(1) Reply
CHANDINATHREDDY
Level 7

Hi you can use the registry entry and from there installpath and uninstallpath can be obtained.
0 Kudos