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
0 answers

InstallShield 2020 - installscript to MSI - migrating first installs, major upgrades, minor updates, patches

First of all let me point out that our MSI basic install(s) are not that basic... Currently we have three separate installscript projects that are not connected via the product code, and replace the product registration when they are applied. What…
0
votes
1 answer

Is there a way to check encoding of files through Install script or batch?

Is there a way through install script/Windows batch/PowerShell that I will be able to check if a file is UTF-8 before passing it for conversion? As a background, I am currently working on a legacy (Japanese) Windows software developed with Visual…
Wolf
  • 91
  • 1
  • 7
0
votes
1 answer

Installshield installscript setup terminates after UAC prompt

I have an InstallShield InstallScript (no MSI) installer which basically works quite fine. On a specific machine, the installer immediately terminates after the UAC prompt for elevated execution. What I expect is that the installer is loaded and…
0
votes
2 answers

How to run RegAsm /codebase with an InstallScript project?

I tried this question on the InstallShield forum and it hasn't gotten any love. My company has an InstallScript project (non-MSI), and we need to run RegAsm /codebase on one of our DLLs. I found some tutorials online for doing this, but they don't…
PaulFake
  • 3
  • 1
0
votes
1 answer

Released Setup have mistakenly have higher version like 1.6 current installer project have version 1.1 Need to upgrade 1.5 to 1.1

We have release our project setup with incorrect Product version (1.6) which is higher than the current version i.e 1.1, Now the problem is whenever I am trying to upgrade from 1.6 to 1.1 it say latest version is already installed, Is there any way…
200_OK
  • 131
  • 2
  • 15
0
votes
1 answer

Error : -7132: An error occurred streaming ISSetup.dll support file Script Files\Setup.inx

I have installscript in Basic MSI Installshield Project which works perfectly when using InstallShield 2015 IDE. But, when using Installshield cmdline on a separate machine, getting this error - "Error : -7132: An error occurred streaming…
0
votes
1 answer

How to get the value entered in the Username field of sdLogonInformation dialog and use in another rul file

I am using Installscript-MSI project project. For getting username and password from the user, I am using sdLogonUserInformation dialog. For example username and password stored in the variables szUser, szPassword respectively. Now I want to use…
Deepak Sabastein
  • 197
  • 3
  • 16
0
votes
2 answers

Can we build install shield - Install script / Install script MSI project to generate 64-bit setup.exe?

I want to know whether it is possible to create setup.exe (64-bit) from install shield. I have read following things to do this, but nothing worked…
Mallesh
  • 77
  • 1
  • 12
0
votes
1 answer

InstallShield UseDLL() doesn't find dll dependencies in the same directory

I have 1 dll file which I try to load during the installation with UseDLL() in one of my installscripts. this dll has 2 dlls it depends on. they both located on the same directory of the main dll. When in build the installation with an older…
DudiD
  • 215
  • 2
  • 7
  • 16
0
votes
0 answers

how to get the directory launched from in c#

I'm running a C# custom action (just a class library) that gets called from an InstallShield installer and I need access to the folder where the .exe was launched from. I've…
0
votes
2 answers

How can I get the startup type of a service from InstallShield?

I have an InstallScript installer that needs to modify an existing service's startup type (i.e. Automatic, Manual or Disabled) based on its current value. For example, if the current startup type is Disabled, it might leave it so, while otherwise…
DNS
  • 37,249
  • 18
  • 95
  • 132
0
votes
1 answer

How to read XML node's value in InstallScript

I have following XML file. SampleData I want to read the value "SampleData" of node Config1 in InstallScript function. I tried properties text, value, nodevalue. But none of it…
Ajit Medhekar
  • 1,018
  • 1
  • 10
  • 39
0
votes
1 answer

InstallShield partially removes program after cancelling its removal

I've got an Installscript MSI project that's behaving a bit oddly. Following a successful installation, if I launch the installation file again, I get a pop-up with a question: "Do you want to completely remove the selected application and all of…
IdanDe
  • 61
  • 1
  • 6
0
votes
1 answer

Import SSL certificate by certutil in InstallShield

I have a function as below : function LONG ImportSSL(hMSI) STRING exeDir; STRING sslDir; NUMBER nvSize; LONG ret; begin nvSize = 256; MsiGetProperty (hMSI, "SETUPEXEDIR", exeDir, nvSize); sslDir =…
Aria
  • 3,724
  • 1
  • 20
  • 51
0
votes
1 answer

A way to check if registry exist on machine in Installscript

I want to check if a registry exists on a machine before I rename a file. The registry: [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mauler Group, LL\RSS-FS] This is my function to check: szRoot = WOW6432Node\Mauler Group, LL\RSS-FS; if (RegDBKeyExist…
JFrosty
  • 57
  • 8