D
Deep
Hi All
MSI creates unwanted dir on machine.
The steps are...
I installed a product (say version 4.0) on my machine and
then uninstall it.
The entries left behind in the registry are
-----------------------------------------------------------
-----------------------------------------------------------
-----
Reg Path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Installer\UserData\S-1-5-18
\Components\A040916F08CC1A7428AA90C085D0CEA0
Name : 6FC6240C0A888F749A3893A117A977F6
Type : REG_SZ
Data : C:\Program Files\Product Dir\
Reg Path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Installer\UpgradeCodes\FC4E5F89970EA5745A9E1CB77BCBFBD0
Name : 6FC6240C0A888F749A3893A117A977F6
Type : REG_SZ
Data : (value not set)
-----------------------------------------------------------
-----------------------------------------------------------
----
Now I delete C:\Program Files\Product Dir\ from my PC.
Now I again install product 4.0. For this installation I
give path as F:\Program Files\Product Dir\.
The product is now successfully installed.
But this installation creates unwanted dir at "C:\Program
Files\Product Dir\".
To resolve this we come to a conclusion that if we
specify "REINSTALL" property to "ALL" For MSI,
Then these registry entries are not created.
This resolves our issue when we talk about our next
version of our product (say version 4.1).
But as per our business need, we want end users should
upgrade their version for 4.0 to 4.1 or an end user first
uninstall 4.0 and then install 4.1.
In that case if these registry entries are there on the
end user machine then even with the 4.1, install will
create these unwanted dir.
To resolve this we can write install shield script code to
remove these unwanted registry entries and it should be
the very first task done by our 4.1 install program.
I had some queries on removing these entries from the
registry. They are
1. Will A040916F08CC1A7428AA90C085D0CEA0 be a constant
value for a respective GUID (our product GUID) ? Is it
depends upon the OS, service pack, version etc?
2. Will FC4E5F89970EA5745A9E1CB77BCBFBD0 be a constant
value for a respective GUID (our product GUID) ? Is it
depends upon the OS, service pack, version etc?
3. Is there any harm in removing
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Installer\UserData\S-1-5-18\Components
\A040916F08CC1A7428AA90C085D0CEA0 and
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Installer\UpgradeCodes
\FC4E5F89970EA5745A9E1CB77BCBFBD0 from the
registry?
Is there any other way to get rid of these unwanted dir.
Thanks for your support in advance.
Regards
deep
MSI creates unwanted dir on machine.
The steps are...
I installed a product (say version 4.0) on my machine and
then uninstall it.
The entries left behind in the registry are
-----------------------------------------------------------
-----------------------------------------------------------
-----
Reg Path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Installer\UserData\S-1-5-18
\Components\A040916F08CC1A7428AA90C085D0CEA0
Name : 6FC6240C0A888F749A3893A117A977F6
Type : REG_SZ
Data : C:\Program Files\Product Dir\
Reg Path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Installer\UpgradeCodes\FC4E5F89970EA5745A9E1CB77BCBFBD0
Name : 6FC6240C0A888F749A3893A117A977F6
Type : REG_SZ
Data : (value not set)
-----------------------------------------------------------
-----------------------------------------------------------
----
Now I delete C:\Program Files\Product Dir\ from my PC.
Now I again install product 4.0. For this installation I
give path as F:\Program Files\Product Dir\.
The product is now successfully installed.
But this installation creates unwanted dir at "C:\Program
Files\Product Dir\".
To resolve this we come to a conclusion that if we
specify "REINSTALL" property to "ALL" For MSI,
Then these registry entries are not created.
This resolves our issue when we talk about our next
version of our product (say version 4.1).
But as per our business need, we want end users should
upgrade their version for 4.0 to 4.1 or an end user first
uninstall 4.0 and then install 4.1.
In that case if these registry entries are there on the
end user machine then even with the 4.1, install will
create these unwanted dir.
To resolve this we can write install shield script code to
remove these unwanted registry entries and it should be
the very first task done by our 4.1 install program.
I had some queries on removing these entries from the
registry. They are
1. Will A040916F08CC1A7428AA90C085D0CEA0 be a constant
value for a respective GUID (our product GUID) ? Is it
depends upon the OS, service pack, version etc?
2. Will FC4E5F89970EA5745A9E1CB77BCBFBD0 be a constant
value for a respective GUID (our product GUID) ? Is it
depends upon the OS, service pack, version etc?
3. Is there any harm in removing
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Installer\UserData\S-1-5-18\Components
\A040916F08CC1A7428AA90C085D0CEA0 and
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Installer\UpgradeCodes
\FC4E5F89970EA5745A9E1CB77BCBFBD0 from the
registry?
Is there any other way to get rid of these unwanted dir.
Thanks for your support in advance.
Regards
deep