Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What extra steps do you take when creating MSI installers for Vista?

I have a very simple Setup project that copies three dlls into the GAC. That's all it has to do. It works fine in XP, but on a Vista machine, it errors out stating that it cannot write to the file and to check permissions. I'm sure this has to do with some impersonation nonsense in Vista, but I'm not sure how to address it.

Has anyone else encountered this, and how did you overcome it if so?

like image 338
Kilhoffer Avatar asked Dec 19 '08 04:12

Kilhoffer


People also ask

How do I create an MSI installer?

Build and install the MSI packageClick on the [ Build ] toolbar button and a “Build Project” dialog will appear showing you the build evolution. Once the build is complete, click on the [ Run ] toolbar button. A setup wizard will appear that will guide you through the install process of the “story. txt” file.

How do I create a MSI Windows Installer package?

Click New software to run the software wizard. Select Windows Vista/2008/7 or Windows 2000/2003/XP and click Next. Select A Windows application installation, using Microsoft Installer (MSI) and click Next. Follow the instructions of the wizard to create your software module.

What is the difference between MSI installer and installer?

The Windows Installer is a component of Windows that handles the installation, maintenance, and removal of software. .MSI files are Windows Installer database files and interact exclusively with the Windows Installer, unlike .

Which service is responsible for installation of MSI?

Windows Installer (msiexec.exe) is responsible for interpreting installation packages (MSI files) and installing applications.


2 Answers

If you're using Windows Installer, are you putting your assemblies into the special Global Assembly Cache folder? That has always worked for me on Vista and Windows 7. There is no need to use GACUtil or anything else, just put the assemblies in the right folder in the installer project.

like image 154
Tim Long Avatar answered Oct 10 '22 00:10

Tim Long


You use the gacutil.exe to install the dlls? Or do you just copy the files?

Anyway, GAC should be avoided for custom dlls unless they're used by many applications. Keep the dlls close/local to the application: it will only cost you some diskspace, and it enables you to use simple Xcopy deployment.

like image 32
Frans Bouma Avatar answered Oct 10 '22 02:10

Frans Bouma