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

Unable to get major version number of product?

I have code to retrieve the Major versions of a product. Declared a property as PRODVER_MAJOR = 2 Code is as follows: function myfunction(hMSI) string svmajorversion; number nsize; begin nsize = 256; MsiGetProperty (ISMSI_HANDLE,…
0
votes
1 answer

Need an example of /installfromweb command line switch for Installscript Project Setup.exe

Can anyone please provide me an example of /installfromweb switch in Installshield that is passed to setup.exe ? I am trying to use this switch with "Installscript project" not "Installscript MSI" for web based Installation.
The King
  • 833
  • 1
  • 15
  • 41
0
votes
1 answer

How to change InstallShield controls properties dynamically?

I have a custom dialog in my IS installer and I want to change some properties such as Height, Top etc. according to the text written in the text areas (on run-time). Are there any InstallScript functions that handle those parameters (something like…
odavid
  • 629
  • 1
  • 6
  • 17
0
votes
2 answers

Cannot launch another install program from my InstallShield script

I have to convert an old InstallShield script used to install a VB6 application from InstallShield 2008 to InstallShield 2011. Unfortunately InstallShield 2011 no longer supports the deployment of the runtimes (using merge modules IIRC). I am trying…
Puzzled
  • 29
  • 8
0
votes
1 answer

Foreign characters in the installation path - Installshield Installscript project

I have a strange problem which surfaces intermittently. The installer installs fine but the installation path has foreing characters. This is a pure English US language installer. This is what I do: g_szProductBaseDir = g_szCompanyBaseDir ^…
msiyer
  • 821
  • 6
  • 20
0
votes
1 answer

Option for user whether to uninstall previous version of the product

I am creating installer using InstallShield 12 and would like to give option to user, say a checkbox whether user want to uninstall or keep the previous version and could install the new version. Do anyone having any idea how could I achieve the…
0
votes
1 answer

InstallScript XP

I have an installscriptmsi project, whose output is setup.exe. I am able to install it on Vista and higher without any issues. I am not prompted for UAC. But on XP, I am prompted with Run As dialog always. I know it is because of setting…
Prashant
  • 2,190
  • 4
  • 33
  • 64
0
votes
1 answer

Installscript project how to hook into the install process

I have created an installscript project using InstallShield 2010. I gather info during the install process in the method "OnFirstUIBefore()". But when the actual install of the software is happening (i.e. when you see a progress bar and it is…
eyeballpaul
  • 1,725
  • 2
  • 25
  • 39
0
votes
1 answer

Installshield issue showing sql dialog with installscript

I am creating an installer using an installscript project in install shield. The dialog I am trying to show is coded as follows: MessageBox("Doing sql call", INFORMATION); Dlg_SqlServerTest: szConnection = ""; svServer = "" ; …
eyeballpaul
  • 1,725
  • 2
  • 25
  • 39
0
votes
1 answer

Install shield installscript project and halting install

I have struggled with InstallShield, however with a lot of trial and error and googling I have managed to create a project using installscript. The first thing it does after the welcome is call a .net assembly and deal with the return of the method.…
eyeballpaul
  • 1,725
  • 2
  • 25
  • 39
0
votes
1 answer

Install Django using pip from bash

I am trying to write an install script for my project which requires Django. I am using pip to install a list of apps but when it gets to Django it says You just installed Django's auth system, which means you don't have any superusers…
Caustic
  • 940
  • 3
  • 12
  • 29
0
votes
1 answer

How to do major upgrade conditionally in installshield

Here's my scenario: I need to have the ability to have different versions of the same product coexist on my machine. So, I need to have a different product key. Cool, no problem. The thing is, I also want to have the option to do a major upgrade…
0
votes
0 answers

How to force uninstall sequence within install sequence in InstallShield

I want my installer to prompt the user to uninstall an existing installation before installing the new one if an installation already exists at the selected install directory. Right now I'm trying to just call the uninstall dialog and let it…
0
votes
1 answer

copy file from executing folder and paste into installing folder in installshield( InstallScript project)

I am creating a InstallScript project in installshield 2011 and my problem is I want to know the path of the setup from where it is executing Suppose there is a folder name "project_setup" in which setup.exe and abc.txt file exist.Now at run time…
jiten
  • 5,128
  • 4
  • 44
  • 73
0
votes
1 answer

Installscript CopyFile Function Error

I am trying to copy a file using Installscript copy file function: bRet=CopyFile( szUnattendIni, szStatusFile ); where the file referred by szUnattendIni is passed as command line argument. When I pass this file from commandline using double…
The King
  • 833
  • 1
  • 15
  • 41
1 2 3
14
15