wix

Pass command-line arguments to WiX custom action

爱⌒轻易说出口 提交于 2020-07-21 03:25:25
问题 We have a desktop application installed through a windows installer (msi), and we want to add a custom action that relaunches the .exe when we have pass LAUNCH_APP=1 to the cmd . So I have a vbs script that launch a bat file that launch install the msi (major upgrade): vbs script: Set WshShell = CreateObject("WScript.Shell") Const TemporaryFolder = 2 Dim fso: Set fso = CreateObject("Scripting.FileSystemObject") Dim tempFolder: tempFolder = fso.GetSpecialFolder(TemporaryFolder) WshShell.Run

Pass command-line arguments to WiX custom action

时光毁灭记忆、已成空白 提交于 2020-07-21 03:25:09
问题 We have a desktop application installed through a windows installer (msi), and we want to add a custom action that relaunches the .exe when we have pass LAUNCH_APP=1 to the cmd . So I have a vbs script that launch a bat file that launch install the msi (major upgrade): vbs script: Set WshShell = CreateObject("WScript.Shell") Const TemporaryFolder = 2 Dim fso: Set fso = CreateObject("Scripting.FileSystemObject") Dim tempFolder: tempFolder = fso.GetSpecialFolder(TemporaryFolder) WshShell.Run

WiX Toolset bundle with total content size > 2GB

家住魔仙堡 提交于 2020-07-16 08:37:26
问题 Is it possible to make a WiX installation bundle with size of total .msi's and exe's inside bundle more than 2GB? Currently in my .wxs template I have a <chain> inside of a <bundle> that contains multiple <MsiPackage> 'es. I haven't created that WiX template on my own, I'm just improving/fixing bugs in a legacy project, so I am not very proficient with the WiX toolset. Anyway, then I create a .wixobj out of that .wxs template with candle.exe and this .wixobj I feed to light.exe. It seems that

WiX Toolset bundle with total content size > 2GB

半城伤御伤魂 提交于 2020-07-16 08:37:11
问题 Is it possible to make a WiX installation bundle with size of total .msi's and exe's inside bundle more than 2GB? Currently in my .wxs template I have a <chain> inside of a <bundle> that contains multiple <MsiPackage> 'es. I haven't created that WiX template on my own, I'm just improving/fixing bugs in a legacy project, so I am not very proficient with the WiX toolset. Anyway, then I create a .wixobj out of that .wxs template with candle.exe and this .wixobj I feed to light.exe. It seems that

installshield - how to let user add files to program files folder in the install

a 夏天 提交于 2020-07-10 17:46:30
问题 I am trying to create an installer that will get the project to install from my server. The project will be chosen dynamically by the user (the user has access to the server), so I can't copy the files to the installer when I create it. I want that the files will add to to ProgramFilesFolder in the installer. How can I do this? 回答1: Not entirely sure what you want to do. Do you want to automatically add files to a project that they select and then build and MSI? Installshield can be run via

installshield - how to let user add files to program files folder in the install

☆樱花仙子☆ 提交于 2020-07-10 17:46:25
问题 I am trying to create an installer that will get the project to install from my server. The project will be chosen dynamically by the user (the user has access to the server), so I can't copy the files to the installer when I create it. I want that the files will add to to ProgramFilesFolder in the installer. How can I do this? 回答1: Not entirely sure what you want to do. Do you want to automatically add files to a project that they select and then build and MSI? Installshield can be run via

Is it possible to check which MSI packages depend on a specific package?

随声附和 提交于 2020-07-10 08:32:25
问题 As in title, when I have some MSI package, is it possible to see which other packages depend on it? If yes, how? If that's not possible, is it at least possible to tell Msiexec to uninstall all depending packages as needed? 回答1: In short: yes and no. I guess . Several MSI files can be installed in sequence without there being any reliable way to tell if they are actually related as products, but they can also be bundled together by various mechanisms so they can install as a "single unit"

How can i identify the current logon user in Wix toolset?

拟墨画扇 提交于 2020-07-10 07:57:09
问题 I'm trying to build an installer with Wix and i have to put a file in the Startup folder. I already found out how to build the path to the startup folder but i can't find any variabile that can identify the current user. That's what i have done for now and it works but the part with the name of the user just creates a new directory with that name 回答1: Run on Startup Normally you would put a shortcut to a file in the startup folder, and not an actual file. You do so by refering to the built-in

WIX service installer overrides service Installer settings

扶醉桌前 提交于 2020-07-09 12:27:05
问题 i am working on a service that is later deployed by a WIX installer. this is service installer class this.ServiceInstaller.DisplayName = "My Service"; this.ServiceInstaller.ServiceName = "MyService"; this.ServiceInstaller.ServicesDependedOn = new string[] { "ServiceA", "ServiceB", "ServiceC"}; and this is the WIX installer code <Component Id="MyService.exe" Guid="{1234}"> <File Id="MyService.exe" KeyPath="yes" Source="$system\$(sys.BUILDARCH)\MyService.exe"> <netfx:NativeImage Id="MyService

WIx - “Registry key not found” when trying to see if a value of SQL SMO exists

 ̄綄美尐妖づ 提交于 2020-07-09 05:57:52
问题 It's been a while since I've done any WiX, but just found out that a bit of an existing bootstrapper exe I wrote ages ago, isn't actually doing what I thought it was - doh !! I've seen other people with similar issues, but I still can't figure out why it's not working. I'm basically trying to determine if a particular version of SQL SMO is installed and am looking in the registry at this location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\SharedManagementObjects