installshield

How to pass parameters to custom action for a managed code dll written in C#?

北城余情 提交于 2019-12-07 23:56:24
问题 I have a requirement where I have to pass 3 parameters to the c# code for managed code custom action in installshield. Cant give the code. Please someone help me out even with basic way of doing so. Thanks in advance. 回答1: Since you mention a custom action, refer to Specifying the Signature for a Managed Method in an Assembly Custom Action. Specify values, or properties that store the values, that you need to pass to the parameters in the function. Note that if this is a deferred custom

How to find the setup location in an VBScript custom action for InstallShield?

那年仲夏 提交于 2019-12-07 21:44:49
问题 In an InstallShield project I have a VBScript custom action that conditionally needs to execute a certain file packaged with the install. Normally I get the current directory of a vbs using code such as sCurPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".") Which, if it returned the location of the Setup.exe that initiated the install, should work. However when running the install, the current path (on XP) is C:\Windows\system32 instead of the location of the Setup.exe

How to change directory security attributes using InstallShield?

独自空忆成欢 提交于 2019-12-07 21:18:48
问题 I'd like to change the security attribute of a directory that InstallShield creates under the CSIDL_COMMON_APPDATA - can someone please advise on how to do that during the installation process? It's a script-defined folder. Thank you. 回答1: you can also just easily call Windows commands "CACLS.EXE" or "ICACLS.EXE" -both are easy command line tool, e.g. icacls file /grant Administrator:(D,WDAC) - Will grant the user Administrator Delete and Write DAC permissions to file 回答2: Under InstallShield

Installshield major upgrade doesn't uninstall old version

泪湿孤枕 提交于 2019-12-07 13:26:48
问题 I have an Installshield project. I added a major upgrade item and changed Product version , Product code and Package code . After the installation with the new installer, the old version is still present (in Add / Remove ) I think it's related to the fact that my old version number was 1.0.4.23 and new one is 1.0.4.24 - is this a problem? Does major upgrade ignore such a small change in the version property? In major upgrade common tab I chose Any earlier version I remember doing this years

InstallShield VStudio project is installing app.config file instead of merged MyApp.exe.config

☆樱花仙子☆ 提交于 2019-12-07 12:58:20
问题 Using a InstallScript C# .Net Wizard to connect to a WinForms solution where I used the dependency scanner to identify project outputs. The install package is copying the un-merged app.config file to the target directory instead of the solutions merged MyApp.exe.config file. This results in a executable that does not properly pickup configuration file settings not only because the file isn't named correctly but it also does not merge in target environment settings (ie. release, debug, etc.).

Installshield Silent Uninstall not working at Command Line

帅比萌擦擦* 提交于 2019-12-07 10:20:33
问题 We have an older app from 2006 we'd like to uninstall at the command line using group policy, but I can't get a silent uninstall to work. This works. Of course I need to click Next to uninstall: "C:\App\Setup.exe" /uninst But this does not. I see an hourglass for a couple seconds but the app is not uninstalled. "C:\App\Setup.exe" /uninst /s I also unsuccessfully tried some VBScripts. They find the app listed but the uninstall fails. I'm not too familiar with how this process is supposed to

How to make Product Version property match executable's version number automatically

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 09:30:20
问题 I have an InstallShield project with 2 executable's. How do I change the product version property in General Information of InstallShield to match one of my executable's version number. I'm using auto builds. Thanks in advance!! 回答1: In your auto build script, you can set the ProductVersion property. For example : <InstallShieldPropertyOverrides Include="$(MSIProductCode)"> <Property>ProductCode</Property> </InstallShieldPropertyOverrides> 来源: https://stackoverflow.com/questions/4055831/how

MSI Log Debug Log Sink

我们两清 提交于 2019-12-07 07:54:58
问题 I have an InstallShield MSI project. When I pass an MSIHANDLE from an InstallScript custom action to a managed assembly initialized via DotNetCoCreateObject(), the value received within my managed code is -2. Does anyone know if it is possible to access an MSIHANDLE from an InstallScript custom action that calls into managed code via DotNetCoCreateObject()? I'd like to log my custom action results to the same log file as the rest of the installation. I am using InstallShield 2010, Windows

InstallShield XML File Changes - Change node attribute on install

喜欢而已 提交于 2019-12-07 07:49:16
问题 I am building a web service installation using InstallShield 2012, and I need to modify the Web.config file of my app based on user input. I have introduced the PromptServerAndDatabase dialog just after the DestinationFolder dialog. I have also set up the Web.config file in the XML File Changes view in InstallShield. Here is my basic web.config file structure: <?xml version="1.0" encoding="UTF-8"?> <configuration> <configSections> ... </configSections> <appSettings> <add key="DatabaseServer"

chained msi's/Bootstrapper/prerequisite?

江枫思渺然 提交于 2019-12-06 23:26:28
问题 I have a few component MSI packages that need to installed together to form the end application. The problem is: the components that make up the package can be updated and the component relaunched on the http file server. What approach should I take? The installer that I am writing is the 'master' installer. Which needs to be able to read what version of each component is installed on their client machine in order to perform an upgrade only on that one component. Also if the application is