windows-installer

Why the shortcut created by my MSI install start the setup process again each time?

I created my MSI installer for our C# application via VS 2008. I installed it. It created a shortcut for me on the desktop. I clicked that shortcut, the setup process running again and at the end our application was launched. It was not like this yesterday before I added some custom action to create database. I didn't recreate the shortc...

Files in RemoveFile table don't get removed during Patch

Hi, I am releasing a new version of my product (minor upgrade), which I'm planning to package as a patch. This is a Basic MSI project in InstallShield 2009. The installer creates some shortcuts on the desktop and in the All Program menu, this shortcuts make a reference to the version number, e. gr. "My Product 7.3", "My Product 7.3.2"....

Retrive msiexec error code from script

Hi, I have 2 problems that i need help with: I need to create a script to get the (error/success) code of an installation with msiexec. Any resources, examples about this? If my WIX Custom Action fails how can i return an error code for the installation? Any examples? Thank you, Adrya ...

Msi: Can dword values in Registry Table expressed in hexadecimal number?

Preceding registry value data by a number-sign (#) causes the value interpreted as a dword in decimal number. This is OK and I have no problem with it. I'm just curious, is there a way to express it in a hexadecimal number. Thanks in advance. ...

Assembly added to the installer but still not work

our C# application has a thirdparty C++ exe which requires Microsoft_VC90_CRT assembly. I have add that assembly in my msi installer which is built by using VS2008. It looks like that assembly is still not available to our application. Is there any special step I need to do when I build my installer? or it is the wrong version of the a...

Visual Studio Installer Project: RemovePreviousVersions does not seem to work

I'm trying to build a Visual Studio Installer Project that is possible to upgrade. I've followed all of the recommendations in MS's documentation I can find: I start versioning the installer at 1.0.0 and increment it by major version (2.0.0, 3.0.0, etc). I change the Product Code each time I change the installer version. I leave the Up...

MSI auto-repair issue work around?

I created a MSI installer by using Visual Studio 2008. I have some temp files that need to be deleted after the installation, but the auto-repair feature bothers me. The auto-repair feature will be triggered by clicking the shortcut created by the installer. I am thinking about creating my own shortcut to avoid that auto-repair. I tried ...

running imported nsis code from within a compiled nsis executable

Is it possible to import nsis code and run it from within a compiled nsis executable? Suppose I have a nsis script fubar.nsi and compile it to fubar.exe. For strange reasons*, I also have some additional nsis statements that I want to read in and execute when fubar.exe is run - I am not sure what they will be until then. Does a plugin ...

Visual Studio setup project along-side self-updating logic?

I'm looking to implement a setup package for my multi-project solution that installs a Windows Service as well as a Winforms application. Both the service and the application have an ability to update themselves via a custom web-based utility that I wrote. So basically, the Windows service updates its own DLL's on a regular basis if it ...

I deleted Windows\Installer folder, is there a chance to repair?

sorry for my english I accidentally deleted Windows\Installer folder in Windows 7 is there a way to repair this? because i can't install new MS software anymore Please help:] ...

Changing application folder permissions during installation

I have a desktop application (.NET), and I have prepared an installer for it using a Setup Project in VS2010. A regular user is supposed to run the installer, and he should have administrator permissions. Everything goes according to plan, however the application folder (C:\Program Files\Company\App) has limited permissions. I would li...

Add own code to a Visual Studio Setup Project?

Hello, I use Visio Studio 2008 and have a problem with the Setup Project. It is possible to add own code to this project? My problem is that I must set Folder Permissions and the PowerShell command Set-ExcetuingPolicy. ...

How can you install a shortcut with the 'Run As Admin' option automatically toggled on?

Hello, I have an application which needs to be run as admin for all of the features to work correctly. I would like to be able to install the app and create shortcuts with that option automatically toggled on. Is this possible? I'm using InstallAware 9 to create my installation. Thanks, brian ...

how to call MsiSetProperty from C# custom action

I am using Visual Studio 2008 setup project to create our installer. I want to disable msi auto-repair feature programmatically. I think call MsiSetProperty(IntPtr hInstall, string szName, string szValue); in my installer's custom action maybe a way to go. Something like: MsiSetProperty(hInstall, "DISABLEADVTSHORTCUTS", "1"); but ...

How do you add a windows service to an existing application installer?

Hi, We've created a windows service to detect the insertion of a particular usb device. That service is then supposed to launch an application we have written. We initially made a setup project for our application and a separate one for the windows service. Now, we are trying to get the service and the application installed in the sa...

Creating an installer with Visual Studio - How do I control the file structure?

Quick question here, I'm using Visual Studio to create an Outlook add-in. I've created the code and it boots up nicely in Outlook. Now to actually creating an installer.. This is what I've done so far, created a new installer project and added the files (dll and vsto) from the debug folder of the actual outlook project. But when I build ...

how to set path in MSI installer?

I am using VS2008 setup project to build our msi installer. I have moved some dll files from the default location (root folder of the installation) to a custom bin directory. I think I need to set path in somewhere (registry?) to tell the application the new loation of those dll files. How to do this? thanks, ...

How do I add a complete directory to an msi in Visual Studio?

I've been tasked with building an msi installer for our custom project in Visual Studio 2005. In addition to installing the dlls we build from our code, it has to install a bunch of extra files (configuration, templates, scripts, stuff like that) that are stored in our version control system. The directory structure in version control mi...

Executable is not signed after installed via MSI

We have an application that requires the user to be an admin to run. So, in the app.manifest we have set up <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> We have a key to sign our assemblies with, which I have been able to use for signing the MSI and the executable of our application. The application's e...

Copying multiple files using wildcards/recursively using Wix

Hi, I'm a total noob on Wix (and installers in general) so please forgive me. My goal is to be able to traverse a directory, search for all, say, *.exe files and copy them to a predefined destination folder. Thing is, I don't know what these files are and their names so I can't type them out one by one in the wxs file... hence wildcard...