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?
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.
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.
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 .
Windows Installer (msiexec.exe) is responsible for interpreting installation packages (MSI files) and installing applications.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With