MSI extension association change

  • Thread starter Thread starter Edward Diener
  • Start date Start date
E

Edward Diener

Some hideous program I installed on Windows changed the association of
..msi files to itself. What is the easiest way of changing this back to
Windows Installer ?
 
From a cmd.exe session;

assoc .msi
should return with
..msi=Msi.Package
If not
assoc .msi=Msi.Package

ftype Msi.Package
should return with
Msi.Package="%SystemRoot%\System32\msiexec.exe" /i "%1" %*
If not
ftype Msi.Package="%SystemRoot%\System32\msiexec.exe" /i "%1" %*


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Some hideous program I installed on Windows changed the association of
| .msi files to itself. What is the easiest way of changing this back to
| Windows Installer ?
 
Dave said:
From a cmd.exe session;

assoc .msi
should return with
.msi=Msi.Package
If not
assoc .msi=Msi.Package

ftype Msi.Package
should return with
Msi.Package="%SystemRoot%\System32\msiexec.exe" /i "%1" %*
If not
ftype Msi.Package="%SystemRoot%\System32\msiexec.exe" /i "%1" %*

These are correct. yet if I double-click on a file with a .msi file
extension, another application opens the file rather than Windows
Installer being launched.
 
What happens if you logon as a new user? (create a new account in 'Users and
Passwords').

Global file type associations are stored in;
HKLM\SOFTWARE\Classes

With Windows 2000 (and later) user-specific file type associations are
stored in;
HKCU\SOFTWARE\Classes

In the event of a duplication then the entries in HKCU takes precedence. So
look for '.msi' and 'Msi.Package' within
HKCU\SOFTWARE\Classes

If logging on as a new user seems to solve the problem then log back on as
yourself and delete the two subkeys above from HKCU

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| These are correct. yet if I double-click on a file with a .msi file
| extension, another application opens the file rather than Windows
| Installer being launched.
|
 
Dave said:
What happens if you logon as a new user? (create a new account in 'Users and
Passwords').

Global file type associations are stored in;
HKLM\SOFTWARE\Classes

I can see that.
With Windows 2000 (and later) user-specific file type associations are
stored in;
HKCU\SOFTWARE\Classes

There are no file extensions there with .msi. Still the association must
exist somewhere else in the registry for Explorer to be opening another
program when I double-click a .msi file. There is on the pop-up menu for
the .msi file Install, Repair, and Uninstall items, so I can still
install from that file. Still I would like to set the .msi file
extension so that the Windows Installer only is invoked when I
double-click it.
 
What happens if you logon as a new user? (create a new account in 'Users and
Passwords').

You might also take a look at;

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
OpenWithList
OpenWithProgids

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| There are no file extensions there with .msi. Still the association must
| exist somewhere else in the registry for Explorer to be opening another
| program when I double-click a .msi file. There is on the pop-up menu for
| the .msi file Install, Repair, and Uninstall items, so I can still
| install from that file. Still I would like to set the .msi file
| extension so that the Windows Installer only is invoked when I
| double-click it.
 
Back
Top