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
2
votes
1 answer

SYSINFO.NWinMajor is giving wrong value for Windows 7

I am creating installer using InstallShield 2012 and I am checking OS using SYSINFO major and minor values.SYSINFO.nWinMajor is giving correct value but SYSINFO.nWinMinor is giving 0 for windows 7.It should be 1. Do anyone know the solution for…
user967400
  • 53
  • 5
2
votes
1 answer

How do you compare versions in InstallScript?

It looks like there is a builtin function, VerCompare, but it requires strings that have all four components, e.g. 1.2.3.4. I haven't tried to do string manipulation in InstallScript and was hoping someone already had the code to take a version…
Sean Hall
  • 7,629
  • 2
  • 29
  • 44
2
votes
3 answers

Magento. Install script will not run, much less create customer attributes

Been banging my head on this for 8 hours now... I have a need (or rather, my company does, being a B2B) to request extra attributes at customer registration. Of course Magento doesn't do this natively, so we're forced down wildly convoluted build…
Bosworth99
  • 4,206
  • 5
  • 37
  • 52
2
votes
1 answer

Multiple Directory Installation

Overview We are currently using installsheild 2012 to create a basic MSI package to deliver our software to clients. I am a self taught with installsheild so I doubt I will be following best practises I do however possess a reasonable understanding…
1
vote
1 answer

Modifying the Installshield scripts programmatically using scripts

I'm new to Installshield. I need to customize an Installshield-8 project to my need. Is there a possibility to set the IS Project information such as Product-Code, INSTALLDIR and Product Version programmatically from an external application…
this-Me
  • 2,139
  • 6
  • 43
  • 70
1
vote
1 answer

Installshield read .properties file

I'm new to installshield and i need to read a .properties file prior to install. Because the wizard name, headers are declared in that. The structure is like this: install.wizard.name="MyApp". First is this possible in installshield? And second how…
1
vote
1 answer

how to change checkbox property in installscript?

ive made dialog that shows two checkboxes. i made the dialog with AskOptions function, like this : nResult = AskOptions(NONEXCLUSIVE,szProduct , "Install Client", Client, "Install Server",Server); now, i…
shacharsa
  • 351
  • 1
  • 4
  • 12
1
vote
2 answers

refreshing the value of Environment variables

In my Installscript project I need a reboot to register the values of Environment variables. But I want that application should setup without a reboot. So is their any way to refresh the values of Environment variable so that my application gets…
nvivekgoyal
  • 484
  • 9
  • 15
1
vote
1 answer

How to disable silent installation in InstallShield?

Is there anyway to disable silent mode? I want the installer to display the window even if I run Setup.exe with the -S option , I didn't find that option in the installScript project , i use installshield2021. Any help would be greatly appreciated.
ikaros f
  • 11
  • 1
1
vote
2 answers

Managing InstallScript releases

How to manage InstallScript differential upgrades and releases. For every version I ship, do I need to keep two releases? One for existing customers - for upgrade and one for new customers for fresh install? Then as the product continues its life…
kroiz
  • 1,722
  • 1
  • 27
  • 43
1
vote
1 answer

How can I create a checkbox that only if it's checked the installer creates shortcuts on Desktop in InstallScript project in InstallShield?

This is weird that in InstallScript projects in InstallShield there is no dialog with a checkbox that allows the user to choose whether or not shortcuts on Desktop, Start Menu, or everywhere else are created at the end of the installation, and I…
1
vote
2 answers

Language for cross-platform install script

In writing an install script, I quickly found that I'd have cross-platform issues, and bash scripts are hard to maintain. I decided to look for a cleaner solution that's more cross-platform. The goal is to have an intelligent script sniff out…
beatgammit
  • 19,817
  • 19
  • 86
  • 129
1
vote
1 answer

Call regasm from installshield in both bitmodes

For my project I need to register a COM visible dll in both 32 and 64 bit. When using installshield's default register com action, it registers it in the modus the installshield is running in. What is the best way to get it registered in both 32 and…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
1
vote
2 answers

Forcing Installshield to uninstall before an install

I have an InstallShield 12 installscript. I want to uninstall the old version before installing the new version. I will keep the name of the package unchanged. How can I do this?
MHG
1
vote
2 answers

Run executable as admin in InstallScript

I am using the following script to run an executable as an admin: #include "ifx.h" export prototype MyFunction(HWND); /////////////////////////////////////////////////////////////////////////////// // …
user489041
  • 27,916
  • 55
  • 135
  • 204