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
1
vote
1 answer

Using dialog back button

I have a simple custom action that I've inserted before the SetupProgress dialog that displays a AskOptions dialog offering some shortcut options. For the most part, I have it behaving as expected, but there is one behavior I cannot figure out.…
Broots Waymb
  • 4,713
  • 3
  • 28
  • 51
1
vote
2 answers

Running into issue creating shortcut on desktop

I've just created a custom dialog with a checkbox asking if the user wants to create a desktop shortcut. I used to always include a shortcut I'm not using the AskText() function as I plan on adding more pieces to this page later and want to simplify…
Broots Waymb
  • 4,713
  • 3
  • 28
  • 51
1
vote
1 answer

InstallScript detect app during upgrade?

MyApp.exe is installed using an InstallScript 2014 project. The folks in manufacturing recently tried to upgrade to a more recent development version but did not close the existing instance of MyApp. This resulted in many permission denied errors…
bo gusman
  • 127
  • 1
  • 2
  • 9
1
vote
1 answer

Deselect an item from Feature View?

If you have worked on installscript of InstallShield. You might also came across to this condition when you have a 'Feature View' and all in the list are selected by default. How can we deselect them? Thanks.
Ramiz Uddin
  • 4,249
  • 4
  • 40
  • 72
1
vote
1 answer

How to find the install location and GUID of 3rd party application whose GUID changes for every installation using install shield?

I know the application name and trying to find the install location and GUID of the application using install shield. I found the application registry values(like DisplayName, InstallLocation, UninstallString, etc) in following location manually: …
1
vote
2 answers

How to check if an application is installed (For any user) while and make it an upgrade, instead of install?

I have a product that is installed across many sites. Now we have released a Upgrade. But the issue was that in the first version the installation was per user and now we have made it per machine installation. There are custom actions in the new…
1
vote
1 answer

InstallScript project giving Error 1706 when upgrading

I have an InstallScript project written from scratch in InstallShield 2010. It contains, amongst other things, three native InstallShield objects and four InstallShield Merge Module Holder Objects which wrap MSM files. When I originally tested the…
Christian Hayter
  • 30,581
  • 6
  • 72
  • 99
1
vote
0 answers

How to convert a relative path to an absolute path in InstallShield?

I have an IS project where I want to put some files under TARGETDIR ^ ".." ^ "NewDir", and create the directory if it doesn't exist. The problem is that CreateDir requires an absolute path. I'm thinking of trimming the trailing "\" from TARGETDIR…
WileCau
  • 2,057
  • 1
  • 24
  • 34
1
vote
1 answer

How do I pass a LPCSTR to a c++ function convert to string and return a LPCSTR?

I have a C++ API function that is called by Install Shield via InstallScript: SQLHELPER_API LPCSTR GetAvailableAppName(LPCSTR appNameP) { //return "this works just fine"; std::string newAppName = "I work, maybe?"; LPCSTR returnVal =…
TruthOf42
  • 2,017
  • 4
  • 23
  • 38
1
vote
0 answers

InstallShield - Detect USB 3.0 Ports

I am building a InstallShield InstallScript project. How can i find out if the Target machine has any USB 3.0 ports. My installer should abort if there are no USB 3.0 ports on the target machine. Thanks
1
vote
1 answer

How to set the "comment" shortcut property with InstallScript

I'm using InstallShield 2014 pro'. I'm trying to create shortcuts at the end of the installation, with specific values in the "comment" property (the text that shows when you hover above the shortcut icon with your mouse). If I create the shortcut…
1
vote
0 answers

Install Script MSI : How to install the product in Current Users Home directory when running the exe as administrator?

I have a msi which is created from an IS Installscript msi project , as the product requires elevated permissions it should be running as administrator . Everything is fine , but now the product is getting installed on Admins home rather than the…
1
vote
2 answers

Can I Run Windows Installer (msiexec) from a Windows Batch File?

Ok, I'm out of my element but here goes anyway. I need to do a silent install of a vendor supplied windows program. The vendor supplied an MSI file to use with the install. I created a bat file to run msiexec that contains the following…
1
vote
1 answer

Completely silent mode for Installscript installation

I have an installscript projects which accepts some prefined command line arguments. Depending upon the arguments passed to it, certain features are selected and installation is performed. I want this installation to be without any User interaction,…
The King
  • 833
  • 1
  • 15
  • 41
1
vote
1 answer

InstallScript and machine.config

I'm having a couple of issues with InstallScript that I can not seem to figure out. The main one is that I need to add the following to the machine.config file: