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

Installshield Installscript properties

We have Installshield 2009 for our product. I am trying to muddle my way through it to make some updates (obviously, I am not the original author). Within, there is a fairly complex arrangement of components and files, plus, there is a script…
Jon
  • 1,675
  • 26
  • 57
0
votes
1 answer

How to Install 64bit msi /Setup.exe file from 32bit installer setup package

I have created 32bit basic MSI project and I want launch/install 64bit msi package from 32bit installer setup file. I tried this using chained msi package but the problem I am facing is 64bit installer is not copying its files to 64 bit "Program…
0
votes
2 answers

In InstallShield, how to change the value of my Property before it is used by SQL Text Replacement?

What I want to do In InstallShield I want to set the value of a Property before it is used by the SQL Text Replacement feature. I want the new Property value to come from an Edit control that I've added to a dialog. What I've done so far I have…
x5657
  • 1,172
  • 2
  • 13
  • 26
0
votes
3 answers

How do I return a unicode string / wstring / CStringW from a C++ dll to InstallScript?

I am using InstallShield 2013 Premium. I created a C++ dll in Visual Studio 2010 to provide some functionality I could not achieve with InstallScript alone. My C++ function needs to return a small string (a username) to the InstallScript after…
BuvinJ
  • 10,221
  • 5
  • 83
  • 96
0
votes
3 answers

How can I use installscript to detect Excel.exe running?

Ive been trying to detect the excel process in my installshield installer. I have a custom action that runs after appsearch and pops a window if it finds the process and displays a warning to the user. I have tried using some old examples I found…
0
votes
1 answer

DISM fails after SQL Silent install

I am working with an Installscript Project and i have a few features that the user can install. When the user selects to install both SQL Server Express 2008 and a webclient application, DISM is failing. SQL install runs first and installs with no…
user616
  • 783
  • 4
  • 18
  • 44
0
votes
1 answer

How to create a button to run install script in magento?

I have created an install script. But my requirement is, this script has to be run only when it is invoked manually. I have created a button in admin back-end. When I click that button the script has to be run. I have searched in Google. But I can't…
0
votes
1 answer

how to check given email address is correct or not in installscript?

I have done the validation for email edit box. I want to check the given email address is correct or wrong in install-script. How can we achieve this functionality in installscript? Thanks, Thananjeyan
0
votes
2 answers

How can I convert this InstallScipt code to C#?

I'm converting my InstallScript Custom Actions To Managed Custom Actions using the DTF (Microsoft Deployment Foundation) Namespace. There is a piece of InstallScript code that I'm having trouble with converting to C# where I need to do some XML File…
0
votes
1 answer

How can I add some selective features/ subfeatures to a new release build through Automation Interface

I am using Install Script in Install Shield 2013 on Windows 7, Lang Used C#. I have a project and it has some features and sub features added to it. Now I want to build a new release using Automation Interface need to add some selective features/…
Sukrit Gupta
  • 438
  • 4
  • 18
0
votes
1 answer

how to add two installation types inside single setup file in installscript

I am using InstallShield 2013 for deployment packages and I want to add two installation types(two applications) in single setup file. I mean , the user should be able to select which application is to be installed when running the setup file at the…
Senavirathna
  • 33
  • 1
  • 1
  • 5
0
votes
1 answer

MSI InstallScript Project: How can I unistall the service's executable file?

I'm a newer with InstallShield and I have a MSI Installscript Project. I created a service to run in Window Services after installed. When I do the uninstall progress, the service is deleted, but the service's executable file is not be uninstalled.…
vinhdq91
  • 31
  • 1
  • 6
0
votes
1 answer

Reinstalling assemblies for new user after reboot, why?

I have Installshield InstallScript MSI aka "Full" setup and Installshield Basic MSI aka "Patch" setup. Full setup copies some files to GAC, some to folder, etc. Patch setup replaces some files in GAC and some in installation folder. How ingenious,…
0
votes
1 answer

How to include a command line parameter when making a setup.exe with Installshield

I'm building an installscript MSI project with InstallShield 2014 professional. I'm trying to create a log file of the installation. I've set the "Create MSI Logs" property to voicewarmup, and a log file is created in a random location in…
0
votes
2 answers

Remove InstallShield prerequisites if installation cancelled

We use InstallShield 2010 to install our software using the InstallScript approach. There are some prerequisites that may be installed as necessary. In the OnBegin callback, we execute some logic to validate the system before continuing with the…
Matt Davis
  • 45,297
  • 16
  • 93
  • 124