windows-installer,installer,installshield,multiple-instances , How can a single installer 'Setup.exe' be used to install multiple instances of same application

How can a single installer 'Setup.exe' be used to install multiple instances of same application


Tag: windows-installer,installer,installshield,multiple-instances

I have created a installer of type InstallScript MSI installer using InstallShield 2008 and it is working. Now I want to install multiple instances of same product on same machine using same installer. I want to show them as a separate application in Add/Remove programs and also a separate directory structure.

Following are the points that I have already tried but haven't find out any solution yet:


I selected point 1 route "Maintenance Experience" and that worked for me.

I converted my project from InstallScript MSI Project to InstallScript Project. I got the compile time errors in Setup.rul file but I find the alternatives for those errors and fix them and make the script able to compile.

So far it is working fine and I am able to install multiple instances from single installer 'Setup.exe'.


INNO setup writing a multi line text constant to the registry

During install I want to write a long multi line/paragraph chunk of text to a registry value writing to a registry value is easy enough [Registry] Root: HKCU; Subkey: "Software\my company\My software"; ValueType: string; ValueName: "Message"; ValueData: "some text" but I would rather define a multi line text constant to...

How does installers check for java version

What method(s) is usually used by program installer to check java version? Do they use simple "java -version" command or is there some other more sophisticated ways. *Windows OS

WIndows Installer Putting shortcuts into a custom folder with a property

I am building an installer with InstallShield. It is a basic MSI project (I'd rather not have any dependencies on InstallShield that might make it more difficult to move to WiX in the future). I am attempting to put some shortcuts into a custom folder that I'd like to locate...

Detecting .Net framwork Reboot required

My NSIS installer installs .Net framework 4.0 silently along with my application packages. Platform is Win Xp / 7 / 8. ExecWait '"$TEMP\app-temp\dotNetFx40.exe" /q /norestart' Now the thing is, if the dotNetFx40 installer returns a reboot required with 3010 code, windows should be rebooted before continuing. I cannot skip this...

Issue faced during uninstall MSI using its Product Code in c#(DTF)

I am creating a CustomBA which will replace the existing install shield Bootstrapper( I don't really know what it's called). We are installing the same number of MSI as the install shield use to do, so no problem in that. All the MSI entries in the ARP are removed, as...

How to change Install button display text conditionally

Is it possible to change the "Install" button display text based on some condition i.e if fresh install then "Install" if upgrade then "Update"? Basically, on major upgrade i am skipping some of my custom dialogs (which are shown on fresh installation) so on InstallReady dialog i want to show...

How to uninstall a program using C#? [duplicate]

This question already has an answer here: How to uninstall MSI using its Product Code in c# 4 answers I'm trying to uninstall a program using C# via Visual Studio and possibly CMD. I made several attempts but could not getting anything to go. Attempt #1: RegistryKey localMachine =...

How to add several ports to FirewallException in Wix?

I use property PORTS to pass some http ports to my installation. Then these ports will be stored into init file and used by the application. I need to add these ports to FirewallException? But following code does not work: <Component Id="fwException" Guid="MyGUID"> <Condition>Privileged</Condition> <RegistryKey Root="HKCU" Key="Software\Company\[ProductName]"> <RegistryValue Name="fwException" Value="1"...

Assembly Dependencies Change After Installation

I have a .NET application that seems to have some of its dependency versions change between debugging and running as an installed release app. I'll just focus on the Castle.Core assembly for my details, but the same issue occurs with a couple others as well. A NuGet package I'm using...

Trigger uninstall and Repair of previously installed product

i am new to Wix toolsets. i have successfully made my first installer in Wix but now i am confused about my software updates which usually are minor. in my installer i want to check if user have any older version installed then i want to show him three options...

how to skip dialog based on selected feature

I want to add a custom dialog in the UI sequence after the Feature selection (Customize) dialog. The feature selection is done through a Feature tree. How can I figure out if a particular feature was selected and launch the custom dialog? Right now I am having the following codes...

I am trying to make a .bat installer to install more .bat files

I am trying to make a few programs in batch that can be installed onto a flash drive or hard drive. I am using > and >> to make a new file called test.bat and adding lines to it. When the program is done a new batch file will be...

Handle Squirrel's event on an Electron app

These days I'm toyng around with Electron to build a small native app for Windows and I'm using Grunt Electron Installer to create an installer for my application. The installer is created successfully but I don't know how ho handle Squirrel's events inside my app, as stated in the docs...

WixSharp inject multiple Custom CLR Dialogs

Using WixSharp, we can insert a custom System.Windows.Forms window as dialog . project.InjectClrDialog("ShowCustomDialog", Dialogs.InstallDirDlg, Dialogs.VerifyReadyDlg); [CustomAction] public static ActionResult ShowCustomDialog(Session session) { return WixCLRDialog.ShowAsMsiDialog(new MyCustomDialog(session)); } The MyCustomDialog is derived from WixCLRDialog class. If I have consecutive custom dialogs ( done in System.Windows.Forms ) to show. How do I insert...

Is class data sharing (CDS) impacted by installing a JRE via copying a directory?

When a JRE is installed via an Oracle JRE installer, the installer creates a shared archive that enables class data sharing (CDS), reducing startup time and memory footprint of JRE processes. Questions If our installer instead installs a JRE by copying a JRE directory, do we lose class data sharing?...

How can a single installer 'Setup.exe' be used to install multiple instances of same application

I have created a installer of type InstallScript MSI installer using InstallShield 2008 and it is working. Now I want to install multiple instances of same product on same machine using same installer. I want to show them as a separate application in Add/Remove programs and also a separate directory...

Single Package Authoring

I am trying to create Single Package Authoring installation using following tutorial - Main wix file is following: <?xml version='1.0' encoding='windows-1252'?> <Wix xmlns=''> <Product Name='Foobar 1.0' Id='GUID' UpgradeCode='GUID' Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.'> <Package Id='*' Keywords='Installer' Description="Acme's Foobar 1.0 Installer" Comments='Foobar is a registered trademark of Acme Ltd.'...

WPF Application Installs Each Time I Open It via Shortcut

What I Have Done: I created a Visual Studio Setup Project that creates the installer for my WPF application. This installer creates the MSI I use to install the application. I created a Primary Output with my primary project and created a shortcuts to this. The application installs successfully. Problem:...

WiX - upgrade services

I Installed my application in version. Services have been installed on the user account (with username / password). How to make an update, so the user does not have to specify login and password again? <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />   <Component Id="MyService" Guid="MyGUID"...

Upgrading MSI throwing 'method not found' error

I have a project with two class libraries. I used 'Setup and deployment tool' to make MSI files. Initially, I have build v 1.0.0 and installed in a machine. After that, I have made few changes in my libraries and made a build v 1.0.1. When I tried to install...

WiX - not executing custom action during update

I have two custom actions (immediate and deferrend). I would like to skipping actions during upgrade. I tried: <Product Id="*" Name="$(var.ProductName)" Language="1033" Version="$(var.Version)" Manufacturer="$(var.Manufacturer)" UpgradeCode="{GUID}"> <MajorUpgrade DowngradeErrorMessage="Newer version is already installed." /> <Custom Action='CAa' After='InstallInitialize'>NOT Installed AND NOT PATCH</Custom> and: <Custom Action='CAa' After='InstallInitialize'>NOT Installed AND NOT...

Slow wpf startup due to publish policy… maybe

I have deployed my .NET assemblies with x-copy for years, without any issue. From last week, we have a small team that wich has the task of build a setup that includes .NET assemblies and exe and c++ legacy exe and dll (more tha 200 files). After the first installation,...

Service dependencies are causing my wix msi to force a reboot on uninstall

I have spent the past 3 days running in-place while tracking down the cause of forced reboots on my system, but have finally narrowed it down to a very specific cause. I have a service suite that I am working on in Wix. There are 10 msi's that are all...

Custom action to launch Msiexec during setup

I need a last (lol) little help... i finished my software and TATA i'm not able to find a correct way to create it's setup. I googled, yes, i googled and searched here but i found only old post referring old visual studio versions.... Please be patient with me... As...

Wix- Unable to write to XML file when using Property Name as Value

I am trying to write a value into an XML file during the installation, this value comes from a text field which user fills it during the installation stage. In my GUI file for the installer I have the following EditField: <Control Id="LogEdit" Type="Edit" X="45" Y="155" Width="100" Height="18" Property="LOGVALUE" Text="{80}"...

Database changes management in installer updates

How can I run a series of database scripts depending on some condition? Basically I want to check build installed on user's machine and then want to run all the scripts till the build in the installer. Say user has build number 4.10 installed and if he goes to install...

WiX: VS2013 How to change output directory

I have a WiX project in VS2013. The output directory in wixproj is: bin\$(Platform)\$(Configuration)\ by fact it is \bin\x64\Release\en-us How and where I can change the real output to \bin\x64\Release\ ?...

WiX error build target

I'm trying to create my MSI setup with WiX and MSBuild command which deploy my img.png into a repertory and i have this error : "MSB4019: project imported "C:\Program Files\MSBuild\Microsoft\WiX\v[[Version.M ajor]].x\Wix.targets" was not found. " Make sure that path of declaration are correct In this line : <Import Project="$(WixTargetPath)" />...

Create a new user with an underscore in the name

I am trying to create a user in WiX, using the following XML: <Component Id="cmp_MyNewFolder" Guid="*"> <util:User Id="MyNewUser" CreateUser="yes" Name="DUMMY&#95;USER" Domain="[ComputerName]" Password="" PasswordNeverExpires="yes" RemoveOnUninstall="yes" UpdateIfExists="yes" /> <CreateFolder> <util:PermissionEx GenericAll="yes" User="DUMMY&#95;USER"/> </CreateFolder> </Component> I've removed the GUID and password for this post, so the issue isn't with those. The problem is...

Where did the internal Rust docs go?

I just updated my nightly Rust toolchain (rustc 1.2.0-nightly (7c4eedc21 2015-05-25) (built 2015-05-25)) and the docs it installs are now vastly reduced – it's missing all rustc_... crates (apart from rustc_unicode). Is there a possibility to get them back? Do I have to build from source?...

Why is my Wix Custom Action is breaking my installer

I had a perfectly good wix installer when it came to moving files from the cab file to the hard drive. The problems are all being caused by the way I am writing my custom action. First, I will show the culprit, then explain the symptoms. <CustomAction Id="InstallElasticWithProvidedBatch" FileKey="fil85D231A31B2F8EB99C6B9EA4B95A354C" Impersonate="no"...

install msi with a product code through msiexec

I am a new to msi installations through command prompt.Can anyone show me how to install an application with product code through msiexec. Currently I am using the command : msiexec /i "D:\msiexec\Calculator\CalculatorInstaller\CalculatorInstaller\Express\DVD-5\DiskImages\DISK1\CalculatorInstaller.msi" ProductCode="42F48712-5C2E-41D1-83CC-2D28C91C889A" but though it's getting installed, I am not able to verify that at HKEY_LOCAL_MACHINE>Software>Microsoft>Wow6432nodeMicrosoft>windows>Uninstall . Please...

Want to create mysql user in installation with full Privileges In NSIS

I am using following code but did not succeed, please help !define deflogin root !define defpassword mysqlpassword !define HOSTPORT "%" ExecWait '$folder\bin\mysql --user=${deflogin} --password=${defpassword} --execute="grant all privileges on *.* to $\'${login}$\' @ $\'${HOSTPORT}$\' identified by $\'${password}$\'"' ${login} & ${password} taken by a custom .ini configuration by following process Function .onInit...

How to install postgres with NSIS with all parameters?

We have a C# program which uses postgres as its database, so we want to bundle the postgres in the installer as a semi-silent install, i.e. the user will be notified about the mandatory installation, but the installation itself will be automatically performed without the need for user input. After...

migrating any windows program to another pc (without installer GUI) [closed]

I am looking for a way to remotely install a program to other computer units running Windows on the fly ,without the need of running the installer steps on each computer (next,next,finish...) all over again , .exe installers don't usually have an easy way to do this without using the...

WIX-Installer ServiceControl “sufficient privileges” error

Visual Studio 2015 RC Wix v3.10.0.1726 I am creating a installer for a windows services. I've tested the service with InstallUtil and it runs fine. Unfortunately I'm having a bit of troubles with wix, here is the exact error - "Service 'Service Name' failed to start. Verify that you have...

How to generate executable across platforms

in case i have a source code and an api to generate windows executable version, is there any possibility or any easy approach to convert it into something that can be executed across Linux /mac or Solaris platforms?

How to install redistributable with visual studio setup?

I wish to make my installer (visual studio setup) to install redistributable (Visual C++ 2013 redistributable x86) in case it isn't installed on the PC or install the necessary dll for my program. I don't wish to set a launch condition. If possible, I wish that the installation of the...

Error allocating file install folder in WIX 3.9

I am setting up the installation locations for my installer. However, it throws an error when I try to set the locations. Source code: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns=""> <Product Id="*" Name="Wix_setup" Language="1033" Version="" Manufacturer="Frank Jansen" UpgradeCode="37a42e55-dea8-47da-8f4f-fb065dd38a9e"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <MajorUpgrade DowngradeErrorMessage="A newer version of...

Running msi causes “module failed to register” in 32bit win7,but works in 64bit win7

I'm trying to deploy my project and create an installer. I've created a msi file in vs2005. When running the .msi setup wizard, i'm getting the error: "Module abc failed to register. HRESULT -2147010895. Contact your support personnel." The module that failed to register is a C++ com dll.But in...

Distributing installer of Windows desktop application

I have an installer for my Windows app and it is quite big (>100 Mb). I am also using ClickOnce deployment framework, so each time I issue an update all my users have to download the installer. We tried to use Amazon S3 to store the setup file, but it...

How to understand which MSI file start

I have W8.1 and i need know which MSI file start when OS opening because installation is corrupted and all time i need press cancel. I want delete it to stop starting with Explorer.exe I already tried to deactivate all process in tab process of Task Manager but don't work....

Windows Form asking .Net framework 4.5 while installing on Windows Xp sp3

I have developed a Windows Form application in .Net C# using visual studio 2013. I am very sure that I have selected .Net framework version 3.5 while creating the project, so that it can install on Windows XP sp3 as well. I have created the setup file using Visual Studio...

How can I change the text in the Wix installer dialog?

My text message is stuck to "Install My Product to:" How can I change this? ("My Product" is the name of my product and the string above is resolved based on the Name attribute in my Product.wxs). I have 2 dialogs and the second requires a different message....

Is NSIS 3.0b1 stable for production usage?

I want to try out NSIS install system. On the download page There are version 2.46 ( last updated in 2009 ) , and the newer 3.0b1 . It seems the newer one is in beta and I worry about stability issues. I wonder if any of you have...