Questions tagged [installscript]

InstallScript is the official language for scripting installations in InstallShield and related products. Use this tag for InstallScript-specific questions; do not use it for broader InstallShield questions.

Introduction

InstallScript is a language for developing installations with InstallShield and related products. Generally InstallScript has C-like syntax and constructs. It is the heart of InstallShield InstallScript projects and can also be used in InstallScript MSI projects and Basic MSI projects' custom actions.

While InstallScript has existed for decades and InstallShield's InstallScript reference is over 1,200 pages, fluent InstallScript programming is somewhat a dark art. In addition to challenges typical of any programming language, InstallScript presents distinct challenges where its features and idioms are often not (well) documented.

Tag Usage

Do

Use the [installscript] tag for InstallScript-specific questions (e.g. InstallScript Data-Type Casing). This includes questions specific to InstallShield InstallScript projects.

Don't

Do not use the [installscript] tag for broader InstallShield questions (e.g. Register assemblies to GAC using InstallShield).

InstallScript Resources

Below are links to some useful InstallScript resources:

215 questions
0
votes
1 answer

I would like to determine the setup language from InstallScript

I am using InstallShield as a install solution, and I would like to determine what user selected as setup language from InstallScript. Is there any properties or something I could use to determine this?
0
votes
1 answer

how to change mode of existing service from automatic to manual and vice-versa in InstallShield through installscript?

i am not able to understand how we can change mode of existing service from automatic to manual through installscript in InstallShield.
0
votes
1 answer

Limitations of InstallScript "Is(FILE_EXISTS, filename)"?

My InstallScript 2014 project installs our application on a desktop PC or an embedded PC that controls an industrial instrument. The only way to know the difference is the presence of a unique USB device driver on the embedded PC that is used to…
bo gusman
  • 127
  • 1
  • 2
  • 9
0
votes
1 answer

How to create 32bit or 64bit only installer with Installshield 2010?

I mean doing this in a InstallScript project so the installer would exit in the first place if it's not running with correct processor type. I found it'll be easy if it's a InstallScript MSI project, just modify the "Template summary" field, while…
Ripley
  • 664
  • 1
  • 6
  • 16
0
votes
1 answer

InstallScript Reboot after multiple prequisites

My product uses an InstallScript 2014 project that has multiple prerequisites (PRQ). Sometimes one or more of these PRQs requires that the machine be rebooted. I have set the PRQ Editor Behavior tab to "Note it, fail to resume if the machine is…
bo gusman
  • 127
  • 1
  • 2
  • 9
0
votes
1 answer

Installshield Hide Feature with switch

I'm currently building an installer that installs different components depending on if a switch is invoked on startup Setup 1: trigger installer Setup 2: trigger installer with argument /vSERVERTYPE=Server When Setup 1 is triggered i want to hide a…
Gaza
  • 427
  • 2
  • 4
  • 17
0
votes
1 answer

What is the best way to migrate from InstallScript to WiX Toolset?

We use InstallShield InstallScript projects to create our installers and are looking for a good way to migrate to the WiX Toolset. As far as I know there is no UpgradeCode (as for MSI) to update from an Installshield InstallScript project to a WiX…
0
votes
1 answer

How to add registry to 64bit area through Install Script function?

Many of InstallShield developers has a doubt of how to add registry to 64 bit area using IstallScript function in InstallShield. If our installer is 32bit EXE, and if we are installing this installer on 64 bit machine, then all RegDB functions…
Ajit Medhekar
  • 1,018
  • 1
  • 10
  • 39
0
votes
2 answers

How to read value of property at uninstallation?

I have created one basic MSI project in InstallShield. I want to achieve one scenario. For this I'm setting one property at the time of installation using installScript function MsiSetProperty(). But I want also read the value of same property at…
Ajit Medhekar
  • 1,018
  • 1
  • 10
  • 39
0
votes
1 answer

How to show Maintenance mode on Uninstall from Program files (install Shield)

I have created a setup through install shield and the installation goes correctly. The problem is when I uninstall from program files then I want to display maintenance mode. Presently it directly shows removing and it removes the program. I do have…
Moiz
  • 2,409
  • 5
  • 27
  • 50
0
votes
1 answer

Retrieving the value of checkbox of DIalog in Installscript

How do I fetch the value of a checkbox in the installscript in Installshield? Background : I have a checkbox which has property "UALCSTATUS" and its value is "ON" .in the Dialogs section . When I fetch the value in installscript using the…
Barsa N
  • 1
  • 1
0
votes
2 answers

How would I copy/Install only one of the two sets of files depending on the user selection in Installshield?

I am using Installshield 2014 Premier Edition. I am creating the installer for my desktop application. Installer requirement : Only one installer should be used which can find the JRE present in the system (32 bit or 64 bit) and depending on that it…
0
votes
1 answer

Problem when uninstall my application in vista and win7, but not in XP

I have a problem when uninstall my application in vista and win7, but not in XP. The error message is " The following error occured on the file 'C:\Windows\system32\mfc40.dll" Access is denied. (0x5) I made installer for my application using…
0
votes
1 answer

how to know whether upgrading, repairing or uninstalling in installscript

I'm trying to write some InstallScript code in Basic MSI project. I would like to know how to determine whether an install is Upgrading or Repairing or Uninstalling. None of these works in InstallScript - REMOVE~="ALL" NOT Installed …
0
votes
1 answer

How to split a string with a multi-character delimiter in InstallScript? (StrGetTokens fails)

The InstallScript function StrGetTokens allows you split a string into a list. See: http://helpnet.flexerasoftware.com/installshield20helplib/Subsystems/installshield20langref/Content/helplibrary/LangrefStrGetTokens.htm This works great with single…
BuvinJ
  • 10,221
  • 5
  • 83
  • 96