On the Advanced Installer forums you can easily find similar topics: one file, multiple locations Multiple Install paths custom install, multiple directories Conditional Install location ...
c#,user-interface,wix,installer,windows-installer
Windows Installer already supports silent installations. See: Command-Line Options An example of a silent installation would be: msiexec /i example.msi /qn ...
c#,.net,windows,visual-studio-2013,installer
Alryt.. I have figured it out myself... Thank you dennis.. you gave me the clue... It have to select from setup project properties--> Prerequisites... that worked for me... :)...
c#,windows-services,wix,installer,visual-studio-2015
Correct, it's a generic error. You have to profile your service to understand why it won't start. GAC is just one scenario. In that case it's because MSI doesn't publish assemblies to the GAC until after StartServices. A classic race condition that results in a missing dependency and error. With...
visual-studio,wix,windows-installer,installer,heat
I suppose you could use external source files if that's acceptable - then you don't have a lengthy compression operation taking place during the build, just a file copy (which keeps getting faster - especially with flash drives). With techniques for making yourself a debug build, you can save a...
wix,windows-installer,installer,custom-action
When you're doing a major upgrade with WiX MajorUpgrade the WIX_UPGRADE_DETECTED is set - see: http://wixtoolset.org/documentation/manual/v3/xsd/wix/majorupgrade.html so that is what you use in the upgrade install to detect that there is an older product installed. In other words it means that the new incoming install has detected an older version...
c++,windows,msbuild,installer,nsis
As for "foolproof" solutions, if I understand you correctly: You have solution containing multiple projects (lets say Test.sln), You want to build this solution for several platforms, ... and use the MakeNSIS tool (I have no idea what that is) to create an installer packaging binaries built for all the...
I found the solution: download Xcode auxiliary tools from October 2013 and use PackageMaker.app, it's straightforward to use and it makes the package installer without any crash. Tested on 2 Macs.
installer,registry,nsis,registrykey
You can build dialogs using nsDialogs. If SourceForge is down, have a look at the your local documentation %PROGRAMFILES%\NSIS\Docs and the examples %PROGRAMFILES%\NSIS\Examples. For registry operations, take a look at ReadRegStr/WriteRegStr or ReadRegDWORD/WriteRegDWORD for a start....
sql-server,database,wix,installer
It looks like you have a UTF8 BOM () in there. Try saving the file as "Unicode (UTF8 Without signature)" using the advanced save options in visual studio.
windows,installer,installation-package,migrating
Almost every modern installer has some way to perform a silent install. You may need to do some digging to find the answers, or ask the publisher. Try running the installer with /? as a command line switch and see what it tells you.
visual-studio-2010,installer,install,custom-action
Finally I change the code, with te objective of delete a directory ("C:\Program Files(x86)\ .... \cm") after the installation process. And now the commit part looks like this: .... [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand)] public override void Commit(IDictionary savedState) { base.Commit(savedState); var DirectorioInstalacao = Path.GetFullPath(Context.Parameters["targetdir"] + "/cm"); File.Delete(DirectorioInstalacao.ToString()); } ... The CustomActionData has this:...
by copying a JRE directory, do we lose class data sharing? Class data sharing file will be valid only if the JVM version and the boot classpath remains the same. Starting from 8u40 as a result of JDK-8046070 JVM will refuse to load CDS archive even if JRE directory...
NSIS 3 is basically NSIS 2.46 merged with the Unicode fork + additional bugfixes. Most of the changes are in the compiler and not in the generated installers. Development is still active but don't expect a new release until after Win10 RTM......
This would be a place to look if you are creating the MSI files: http://robmensching.com/blog/posts/2011/1/14/arpinstalllocation-and-how-to-set-it-with-the-wix-toolset/ If they belong to other companies there's not much you can so. ...
installer,inno-setup,pascal,pascalscript
There is no way to do what you want natively in Inno Setup. You will need to do it from code by yourself. You can cheat here a bit by using the WizardSelectedTasks function. This function returns a comma separated list of selected task names (or descriptions), and so it...
installation,installer,windows-installer
By default, there is no user environment variable named PATH, only a system variable. Sounds like the script doesn't handle this case. As confirmed by the OP, it was sufficient to manually edi the registry key HKEY_CURRENT_USER\Environment to add REG_EXPAND_SZ entry named PATH. The value can just be an empty...
Actually you can't change this using ANT. However, as you already know the deploy mechanism uses Inno Setup and you can modify its behaviour. During the fx:deploy ANT task a default ApplicationName.iss file is created. This default file contains e.g. the setting, which is responsible for the install directory. This...
postgresql,installer,package,nsis
This is about right. Please do not use port 5432 for PostgreSQL. Pick a non-default port well outside that range, like 5599 or something. Change the port by modifying postgresql.conf and setting the port directive. You might find it useful to simply append include_dir = conf.d or similar in your...
xml,wix,installer,windows-installer
The "flashing" you are seeing is likely due to the fact that you didn't author any UI. I blogged about this in "Are Dialogs Optional Now??" some 8 years ago and I was attacked for trolling (on my own blog??). I suggest taking a look at IsWiX. The visual studio...
wix,windows-installer,installer,msi-gui
If I recall correctly, MSI has a limitation that a feature state won't record until after you changed to another dialog. You are doing it right, it just won't work. I would transition to another dialog (SqlDatabaseDlg probably) and then on the next button of that dialog do your checks...
windows,command-line,scripting,installer,windows-installer
Error 2711 is because the ADDLOCAL property expects a list of feature names not component names. You'll need to create a transform and apply it with TRANSFORMS=foo.mst to exclude just a component from the installation.
From what I know there is no way to create a multilingual VS setup project which at install time will let the user to choose the install language. I'm not sure if this is a feasible choice for you, but as an alternative solution you can try to use a...
visual-studio-2012,installer,installshield
In visual studio 2012 , there is not any installer project provided, you need to install InstallShiled installer. Other wise I would suggest you to go with older version of Visual studio like 2012 or latest version of 2013, these both IDE have Installer package. if you still want to...
I think the internal APIs were removed from the distributed docs because they took up the bulk of the size. You'll have to build it yourself for local docs. We're discussing using an /internals page for the full docs. However, I've put up a mirror here for now. This mirror...
Versioned files get replaced based on file version, yes, but data files get replaced based on whether you have specified file hash or not. I think WiX generates file hases by default, so this is the overwrite rule: https://msdn.microsoft.com/en-us/library/aa370532(v=vs.85).aspx and it's a Windows Installer rule that applies to all MSI...
windows,installer,inno-setup,pascal,pascalscript
You are missing the exclusive flag: [Tasks] Name: hidden; Description: Hidden mode; GroupDescription: Installation Mode; Flags: exclusive Name: visible; Description: Visible mode; GroupDescription: Installation Mode; Flags: exclusive ...
wix,windows-installer,installer
WiX is a language (XML/XSD) that serves as a way of authoring (compiling) Windows Installer (.MSI) databases. WiX doesn't install anything, MSI does. I maintain an open source project called IsWiX. The concept is simple. IsWiX provides additional WiX project templates (scaffolding) and graphical designers to assist you in creating...
batch-file,azure,command,windows-installer,installer
As the documentation states there are explicit switches and configuration files for your installation scenario. A simple example could be gpg4win-2.2.4.exe /S /D=D:\Temp\Gpg4win specifying /S for silent and /D for the destination path which might be relevant for your scenario. If you need more detailed setting the documentation shows how...
.net,visual-studio,wix,windows-installer,installer
Those properties are new to WiX v3.10.
Using a simple variable should work. #define mytext "some long text value\r\ngoing onto another line" [Registry] Root: HKCU; Subkey: "Software\my company\My software"; ValueType: string; ValueName: "Message"; ValueData: "{#mytext}" However, writing a ValueType: string to a registry in Windows means you are writing a REG_SZ. The \r\n will appear as text...
ExecWait will tell you the exit code of the child process: ExecWait '"c:\path\app.exe" /whatever' $0 DetailPrint $0 ...
windows,installer,windows-installer,atl,winsxs
Your alternative is to run the VC_redist.exe for that version of Visual Studio, run it from the bootstrapper with whatever setup tool you're using. I don't know what you mean about packaging technology. The only way merge modules (msm files) can be installed is to add them at build time...
windows,batch-file,cmd,installer
You need to escape the first redirection symble (>) with a caret (^): ECHO ECHO HI ^> "E:\Log.txt" > "E:\Program.bat" Found this at http://www.robvanderwoude.com/escapechars.php by Googling "how to escape characters in dos batch"...
visual-studio,deployment,installer
You need to digitally sign the package with a code signing certificate acquired from a certified vendor (Thawtee, VeriSign, etc...). You cannot use a self-generated certificate. Windows OS automatically uses the company name you specified when building the setup package, but only if the package is digitally signed....
android,installer,open-source,nsis
I mentioned my request in an issue in the Android issue tracker. From what David Herman at Google wrote in reply, it looks like it's not available online. He wrote: I'm not sure what the plans for the SDK installer are moving forward - it may get deprecated by the...
Navigate to the deployment project in the solution explorer Click the "Primary Output From (Application)" item Under properties, set the Exclude Filter to *.config ...
installation,windows-installer,installer,rollback,installaware
InstallAware and other tools such as Window Installer XML and InstallShield author Window Installer databases. Windows Installer handles this automatically for you by providing built in transactional installation and upgrade capabilities. The behavior you are looking for is controlled by where you choose to schedule the RemoveExisitingProducts action. See: RemoveExistingProducts...
.net,visual-studio,dependencies,installer,.net-assembly
Ok, figured it out. First, facepalm The assembly added via NuGet has a specific version dependency on Castle.Core 3.2.0. However, because that assembly can still work with Castle.Core 3.2.0-4.0.0, an assembly binding redirect got added to App.config that indicates to the assembly loader that any assemblies requiring a version in...
java,logging,installer,out-of-memory,install4j
On the "Installer->Screens & Actions" step, select the installer and add -Xmx512m to the "VM parameters" property. If that does not help add -XX:+HeapDumpOnOutOfMemoryError and post the zipped HPROF snapshot....
Ok, so i believe i figured it out.. There was an issue in how i had constructed the bundle xml. As the installer itself depends on the .Net, (as is mentioned on the internet in many places) this code snippet must be placed in a fragment..: <!-- This defines the...
mysql,grails,installer,bootstrap
I highly recommend you consider using an external configuration file that will allow your customers to not only configure the data source(s) but any other aspects of your application when they deploy it. The Grails documentation has detailed information about how this is accomplished....
RMDir is safe. It's use of the /r flag that the doc warns about: Warning: using RMDir /r $INSTDIR in the uninstaller is not safe. Though it is unlikely, the user might select to install to the Program Files folder and so this command will wipe out the entire Program...
windows,installer,installshield
This should be easily done with every installer creation tools like InstallShield, Advanced Installer, etc. which have support for installing file and shortcuts, prerequisites packages (your EXE) and setting path variables.
installation,wix,windows-installer,installer,custom-action
Summary In WIX 3.9 (and earlier), the FirewallExtension only supports a single integer for the Port attribute. The Port attribute supports Formatted values, but the result of the formatting must still be a single integer. In your case [PORTS] must evaluate to a single integer. If the Port attribute is...
visual-studio,visual-studio-2013,msbuild,installer,setup-project
Wix is the default way to go for free solutions that need to do advanced steps and must be able to integrate into Team Build and MsBuild. Product Free/Paid VS designer MsBuild Support InstallShield LE free yes yes InstallShield Pro paid yes yes InstallAware paid yes yes 3) Advanced Installer...
wix,installer,windows-installer,cdata
The problem is that your property is treated as string, thus < and > don't really make sense in the way that it should. You have two choices: Use Edit control and set Integer attribute as yes: <Control Type="Edit" Integer="yes" .../>. This will make sure that property is treated as...
windows,installation,installer,system,inno-setup
Answered in parts like your question: ArchitecturesInstallIn64BitMode Valid values: One or more of the following, separated by spaces: x64 ia64 Default value: (blank) Description: Specifies the 64-bit processor architecture(s) on which Setup should install in 64-bit mode. If this directive is not specified or is blank, Setup will always install...
windows,deployment,amazon-s3,installer,hosting
Big companies like Microsoft use a content delivery network which makes sure no matter where you come from a download server gets assigned to you which is as near as possible to your current location.
android,installer,install,android-4.4-kitkat
I solved my problem: In the onStop() method, I delete the downloaded APK file. In previous versions of Android, the onStop() method was not called if the install dialog appears, but in Android 4.2.2, the method is called and so the APK file was deleted.
You can define preprocessor variables with Candle as so: candle.exe -dMyVariable=whatever. This is not a hard answer to find with google but my problem was that I was trying to do: candle.exe -dMyProject.TargetDir.Help=$(var.MyProject.TargetDir)Help\ So I was a little bit careless here forgetting that $(var.MyProject.TargetDir) is also created by candle and...
installer,inno-setup,pascal,uninstaller,pascalscript
The possibility to check for the file existence beforehand was already mentioned. The user TLama mentioned that the code in the question is not regular pascal program code, but Inno Setup script code and and that my answer doesn't apply in this case. Because the following text could be of...
The SetShellVarContext instruction changes some of the NSIS constants so that they point to the all-users version of the special path: Function .onInit SetShellVarContext all StrCpy $InstDir $AppData FunctionEnd ...
So I found the solution to my problem: IfFileExists "C:\Program Files\program_name\program.exe" file_found file_not_found file_not_found: StrCpy $0 "This computer is not valid" Abort file_found: ;rest of .nsi IfFileExists checks if the following file exists. Goes to either file_found or file_not_found. I choose to abort if file is not_found...
If your code is in a .NET language, there are online and offline translators that can convert the code to Java. This is just language translation, and doesn't convert the API calls, but it would be a first step in the process. Another way to handle the problem would be...
visual-studio-2010,installer,uninstaller
SOLVED! I am giving the answer to my own question so that if anyone faces the same issue then it can be helpful for him. Solution: Go to View->Editor->User Interfaces. Remove the Welcome dialog. Again add the Welcome dialog. Build msi, and your issue will be solved. There may be...
Code not tested, but it should help... # Bundle 7zip archiver and extract it to TEMP folder File "/oname=$TEMP\7za.exe" 7za.exe # If target directory exists... ${If} ${FileExists} "$INSTDIR" # Create archive on temp folder execwait '"$TEMP\7za.exe" a "$INSTDIR\archive.7z" "$INSTDIR\folder_to_backup"' ${EndIf} Delete "$TEMP\7za.exe" ...
You probably want return = asyncNoWait, as it says in the docs: "Indicates that the custom action will run asyncronously and execution may continue after the installer terminates. " ...
c#,wix,installer,patch,msiexec
The clue is in the message! Service packs, patches, hotfixes all depend on updating binaries based on the file version. Not only does this speed things up by not installing files that don't need changing, it ensures that you don't overwrite a higher version with an old version. Creation dates...
You have to point DestDir: "{sys}" (or DestDir: "{syswow64}" ONLY in special cases) After Compiling the Installer, all files pointed in Source: will be integrated and stored in Setup.exe. During the Installation process, all files from the Setup.exe will be copied to it's destination folders described in your script as...
c#,visual-studio,visual-studio-2013,installer
Here is a MSDN link on how to register an addin. http://msdn.microsoft.com/en-us/library/19dax6cz(v=vs.120).aspx It is easy to create an MSI from this. There are also several tools that have support for deploying an addin...
The way I'd check for the Java version is running a simple class with the following: class VersionChecker { public static void main(String[] args) { System.out.println(System.getProperty("java.version")); } } EDIT: The reason why is that java -version will give something like this: java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14)...
.net,wpf,wix,installer,file-association
Finally, all this behaviour was normal. What I had to do is to change my relative paths inside my application source code from something like: @(Directory\FileName) To: Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\Directory\FileName"; It works. Always refer ro the assembly....
By default a custom action will be elevated only if it is deferred, not impersonated, and between InstallInitialize and InstallFinalize, and it's a per machine install, and then it will run with the system account. Whether it will actually work or not depends on whether in that situation the code...
windows,node.js,installer,electron
You could handle each Squirrel event and create shortcuts: case '--squirrel-install': target = path.basename(process.execPath); updateDotExe = path.resolve(path.dirname(process.execPath), '..', 'update.exe'); var createShortcut = updateDotExe + ' --createShortcut=' + target + ' --shortcut-locations=Desktop,StartMenu' ; console.log (createShortcut); exec(createShortcut); // Always quit when done app.quit(); return true; case '--squirrel-uninstall': // Undo anything you did...
windows-installer,installer,installshield,multiple-instances
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....
installation,windows-installer,installer,msiexec
ProductCode is a private property and isn't being passed to the installer session. I don't see why you'd need it anyways as it's in the MSI that you are installing. You can uninstall using a ProductCode (by substituting it for the path to the MSI not by passing it as...
Ditch Packagemaker. Try Packages or pkgbuild with luggage.
wix,windows-installer,installer,msiexec
You have a typo in your Key attribute: It should be HARDWARE\DESCRIPTION\System\CentralProcessor\0...
Start with Packaging a Java App for Distribution on a Mac and Java Application Bundler. This will allow you to package your application as a Mac .app bundle. Then you could look at something like this as an example There are plenty of cross platform installers, I tend to use...
This isn't going to work! One MSI setup cannot launch another MSI setup. When it says "another install is in progress" it is referring to your one that is already running. It's not about admin privilege - you cannot install another MSI from an installer custom action, no matter what...
windows,installer,inno-setup,pascal,pascalscript
You can use the code shown in the Uninstallable directive documentation: [Setup] ... Uninstallable=not IsTaskSelected('hidden') [Tasks] Name: hidden; Description: Hidden mode; GroupDescription: Installation Mode Name: visible; Description: Visible mode; GroupDescription: Installation Mode Optionally, if you'd need more complex statements written in reusable function, or access some of the scripting code...
xml,wix,windows-installer,installer,upgrade
The issue seems to be a recurring one, similar to this: http://support.microsoft.com/kb/905238 Windows decides not to install the files because a higher version exists, but doesn't re-evaluate that decision when it turns out we're doing a major upgrade. I thought this issue had been fixed in MSI 4.5. Doing the...
scripting,installation,installer,inno-setup
With Inno Setup you can even merge the script in primary installer .exe file, as Inno Setup has built-in Pascal scripting functionality. It's file-manipulation functions are rather limited, but maybe it's enough for your needs. Very simple example: [Code] procedure InitializeSetup: Boolean; var FileName: string; S: AnsiString; begin // Prepend...
c#,windows,service,installer,installaware
To install the service using InstallAware, Switch to Design mode and go to Advanced Options -> Services. Button "New..." -> Install Service In the dialog that opens, you will have to set up the "Service File" tab and the "Service Properties" tab correctly. In the "Service File" tab, you have...
Silly me; I was using the bogus certificate name "3rd Party Mac Developer Installer: (My Name)" instead of "Developer ID Installer: (My Name)". A quick test using: spctl --assess --type install <packagename>.pkg gives: <packagename>.pkg: rejected ...which means that the package wasn't signed correctly for running as an installer I guess....
c#,windows-installer,installer,restart
This works for me : [RunInstaller(true)] public partial class Installer1 : Installer { public Installer1() { InitializeComponent(); } public override void Install(IDictionary savedState) { savedState.Add("InstallDir", Context.Parameters["dir"]); base.Install(savedState); } public override void Commit(IDictionary savedState) { base.Commit(savedState); Start(savedState); } private void Start(IDictionary savedState) { try { string DirPath = (string)savedState["InstallDir"]; if (!string.IsNullOrEmpty(DirPath))...
windows,installer,nsis,error-checking,create-directory
I decided: ClearErrors CreateDirectory $R1 ${If} ${Errors} ${OrIfNot} ${FileExists} "$R1\*.*" DetailPrint "failed" MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Can not create folder $R1" Abort ${Else} DetailPrint "done" ${EndIf} have more ideas?...
wix,windows-installer,installer,burn
Short-ish answer: When there are multiple MSI files it is normal for the UI to be handled by the Burn bootstrapper because you do want to see combined progress, not all the separate MSI UIs. You also should set up appropriate rollbacks of more than one MSI in the event...
The Excludes parameter directory tree base is specified by the Source parameter path. All patterns listed there are relative to this dir tree base path. From what you posted is hard to tell what's correct for you because those script excerpts do something different. Your first script sample excludes this:...
windows,visual-studio-2013,installer,windows-installer
For the record, I figured out the problem. Changing the UpgradeCode value is all that is necessary to achieve the behavior I want, but due to the way the software's build process has been set up, changing it in the .vdproj file was insufficient -- there was also a MyProgram.variables.wxi...
.net,wpf,deployment,installer,publisher-policy
That set of traces appears to be related to COM instantiation based on "advertised" COM classes. Without knowing anything about how your MSI is organised into features, components and COM registration it's hard to be completely sure. But anyway, if the COM classes are registered using the Class table in...
visual-studio,installer,redistributable
That's what the Prerequisites button is for in the setup project's Properties. You'll need to set a configuration (such as Release) before you see that button. That's where you add the VC++ runtimes. That will generate a setup.exe that users run - it will install any of those prerequisites and...
In that specific registry case, you use the HKMU registry key for, it does that switch for you. In the more general case you'd perhaps need to follow these guidelines depending on what else is in your install: http://msdn.microsoft.com/en-us/library/windows/desktop/dd408068(v=vs.85).aspx ...
That condition is incorrect if you are using it in your upgrade setup. UPGRADINGPRODUCTCODE is set in the older already installed product that is being replaced and uninstalled, NOT in the new incoming upgrade. For that you need the property from the upgrade element, WIX_UPGRADE_DETECTED if you use the MajorUpgrade...
.net,windows,visual-studio-2012,installer,prerequisites
Reinstalling the SDK solved the problem.
.net,visual-studio,wix,windows-installer,installer
A custom actions gets executed at a certain step during the installation, depending on where you schedule it. In your case, you need to schedule the custom action to be executed after the standard action "LaunchConditions". By adding something like this in < InstalUISequence >: <Custom Action="WarnIfOutlookNotInstalled" After="LaunchConditions"><![CDATA[NOT Installed]]></Custom> ...
wix,windows-installer,installer,custom-action
I believe this is occurring because in your installer the default mode is Per-User hence it is not detecting per-machine. You could use MSIGetProductInfo to find the installed products if the assignmenttype is “1” then you could set the below properties to Product Code of Per-Machine product WIX_UPGRADE_DETECTED OLDERVERSIONBEINGUPGRADED Use...
windows,installer,windows-installer,wise
It's difficult to do this effectively in MSI because it would be so easy to bypass it. You'd be better served by either building a self-extracting EXE that does the date time check or moving the business logic into the application proper so that it stops working after a certain...
There are two problems with your project file: The <WixTargetPath ...> line [[MajorVersion]] should be replaced with '3', The <Compile...> line should to refer to the correct file 'Test.wxs'. Try this project file: <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">x86</Platform>...
command-line,scripting,installer,command-prompt,nsis
The ExecDos plugin can provide stdin text to the command you are executing.
logging,wix,installer,windows-installer
See: MsiLogging property The problem is it's only available starting with MSI 4.0. There's also a bug in Windows 7 where sometimes uninstall from Add/Remove programs will fail because explorer loses where the temp directory is. Additionally it creates Msiabcxyz.log (abcxyz is some random hash) in the TEMP directory that...