Mar 14, 2020
02:06 PM
Hi, did you fix this issue? I am experiencing same issue with InstallScript MSI.
... View more
Dec 05, 2019
06:47 PM
Hi all, We have an InstallScript MSI project with string translated in some non-English languages. When we install in a Chinese locale the UI shows appropriate Chinese string. Next, we change the locale of that machine to French. When uninstalling the UI still shows Chinese. Is this expected or is a bug? thanks in advance.
... View more
Labels
- Labels:
-
InstallShield 2019
Nov 21, 2019
12:04 AM
Hi agshah, @agshah Can you please assist in how you checked if there is a major upgrade, i mean how did you use msigetproperty with IS_MAJOR_UPGRADE in installscript. I am trying to change the dialogs in onFirstUIEvents.rul if the installshield is in upgrade mode. Any help would be really great
... View more
Jul 09, 2019
10:47 AM
Agshah, Your observation is correct. I just tested the behavior of setting and retrieving a public property and I see the same behavior. However, the global property (the flag) can be set in function OnFirstUIBefore() and be used in Custom Actions. In my project, I set a global property (a flag) a new value in the OnFirstUIBefore(), then I use this flag as the condition to drive the behavior of a Custom Action. This approach worked for me. There are quite a lot of types for defining Custom Actions such as SetDirectory, SetProperty, calling functions from VBScript and etc. I am thinking that the SetProperty custom action might be meant to set a new value to a Global Property session wide but I did not try it. You may explore the Custom Actions to see if you can get what you desired functionality done.
... View more
Jul 04, 2019
07:20 AM
Hi @agshah ,
Can you try with sample rul file given in InstallShield's INSTALLDIR for an eg:C:\Program Files (x86)\InstallShield\2019\Script\Isrt\src\ISRTScriptDialogs.rul which has SdWelcome function defined?
There you can add check for property like IS_MAJOR_UPGRADE present or not using MsiGetProperty.If that doesn't help you can add productversion based check just to check this is major upgrade of previous setup. Pseudo code would be:
#define TXTBOX 1301 //CONTROL identifier
.......
function SdWelcome(szTitle, szMsg)
string svName; number nSize; HWND hwndDlg,hwndTxtBox;
.....
...
hwndTxtBox = GetDlgItem(hwndDlg,TXTBOX); nSize=256; MsiGetProperty(ISMSI_HANDLE,"ProductVersion",svName,nSize); if(svName=="2.00.0000") then _WinSubShowWindow(hwndTxtBox,1); _WinSubEnableControl(hwndDlg,TXTBOX,1); else _WinSubShowWindow(hwndTxtBox,0); _WinSubEnableControl(hwndDlg,TXTBOX,0); endif;
end
You can find the same in attached sample .rul file as well.
Thanks,
Jenifer
... View more
Jul 27, 2018
01:57 PM
agshah wrote: Hi all, I created a custom action of type Error. In this custom action for 'Error Message' I am specifying a property. e.g. [MYERR_MSG] MYERR_MSG is a translatable property set to a string in string editor whose value is : %P is already installed. When the custom action gets execute the error message displayed is "%P is already installed." %P does not get replaced by product name. How do I get it to be replaced by product name at runtime. thanks. Hi To set error message ,try setting it like [PRODUCTNAME] is already installed" instead %P format. Installshield might not know %P format & all.
... View more
Apr 26, 2018
06:11 AM
Hi agshah, By default windows installer/msi's uninstall behavior would be : Asking for a confirmation about uninstallation Then it proceeds with removal of components It won't bring you up wizard with finish button If you want to accomplish that Installscript/Installscript MSI will be the option for you. Hope that helps, Thanks, Jenifer
... View more
Apr 24, 2018
03:56 PM
Hi Jenifer, thanks for your response and the links. For the InstallScript project types, the links mention "You want to perform actions before or after the main installation is run" Does this mean this is not possible in 'Basic MSI' ? Currently we have an 'InstallScript MSI' project and there are issues with it and hence are looking into switching over to Basic MSI project type to see if it resolves the issues. In our existing 'InstallScript MSI' project type, we currently run an exe from installscript before the install dialog comes up and look up and store info that is used later in the InstallScript after the files have been copied over, etc. Will we not able to do these type of things in 'Basic MSI' ?
... View more
Jun 15, 2018
08:44 AM
Hi agshah, Have you tried setting Release1->Signing->Sign Output Files-> to Setup.exe ? In which setup.exe inside cache folder ("C\Program Files (x86)\InstallShield Installation Information\{product guid}\setup.exe) will get signed.By which your problem of uninstalling from Apps & features will get solved Thanks, Jenifer
... View more
Apr 17, 2018
05:08 PM
This issue seems to be because my project is InstallShield InstallScript MSI. I create Basic MSI and InstrallScript projects and they don't have this issue. Can someone please comment if this is a known InstallShield issue with the InstallScript MSI projects? If so, any workarounds ?
... View more
Feb 12, 2018
07:40 PM
You'll need to parse the Date and Time strings returned into their constituent parts (year, month, day, hour, minute) and then concatenate them back into the desired order.
... View more
Feb 28, 2018
12:33 PM
agshah, I don't know about the Date property, but this can be used in InstallScript: GetSystemInfo( DATE, nResult, strDate ); GetSystemInfo( TIME, nResult, strTime ); svDateTime = strDate + " " + strTime; reference: http://helpnet.installshield.com/installshield22helplib/Subsystems/installshield22langref/helplibrary/LangrefGetSystemInfo.htm HTH
... View more
Feb 12, 2018
07:36 PM
What I meant was that the property you are looking for is "Installed". In your original post you used an undefined property "INSTALLED". There is a difference--property names are case sensitive. The reason I surmised that you wanted your action to be in the "Install UI Sequence" is that you said you wanted the action to display a message. You don't want to display messages in the "Install UI Execute" sequence because if you put the message there it will display if the user performs a silent (or unattended) installation. I'd recommend you look into taking Flexera's "Learning MSI Projects Using InstallShield" class.
... View more
Feb 06, 2018
05:44 PM
Folks, anyone know how to customize this message? InstallShield displaying instead of product name is cryptic. Also, Add/Remove programs is not longer called Add/Remove programs since a long time. If it is not possible to customize this message, what are some other options to tell the user to uninstall an existing version before installing the current one?
... View more
Jan 12, 2018
12:00 PM
InstallScript MSI projects create their own ARP uninstall key which is what is used as the source of the ARP entry (the MSI uninstall key is hidden from ARP). InstallScript MSI uninstall keys are under HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall and are always named 'InstallShield_{ProductCode}'. The uninstall string will always reference the cached setup.exe installed at \InstallShield Installation Information\{ProductCode} to allow the product to uninstall correctly. msiexec.exe can't be used to uninstall an InstallScript MSI project. If this is required a Basic MSI project should be used instead.
... View more
Latest posts by agshah
Subject | Views | Posted |
---|---|---|
397 | Dec 05, 2019 06:47 PM | |
1015 | Jul 03, 2019 04:56 PM | |
3136 | Jun 25, 2019 05:07 PM | |
3138 | Jun 25, 2019 04:30 PM | |
3140 | Jun 25, 2019 02:22 PM | |
3160 | Jun 24, 2019 05:39 PM | |
802 | Jul 17, 2018 04:37 PM | |
3182 | Apr 26, 2018 04:39 PM | |
3918 | Apr 25, 2018 04:45 PM | |
1210 | Apr 24, 2018 03:56 PM |
Activity Feed
- Posted Globalization/Language Translation related question on InstallShield Forum. Dec 05, 2019 06:47 PM
- Posted Conditionally displaying text control in a dialog in InstallScript MSI project on InstallShield Forum. Jul 03, 2019 04:56 PM
- Posted Re: Major Upgrade detection from InstallScript on InstallShield Forum. Jun 25, 2019 05:07 PM
- Posted Re: Major Upgrade detection from InstallScript on InstallShield Forum. Jun 25, 2019 04:30 PM
- Kudoed Re: Major Upgrade detection from InstallScript for banna_k. Jun 25, 2019 04:30 PM
- Posted Re: Major Upgrade detection from InstallScript on InstallShield Forum. Jun 25, 2019 02:22 PM
- Posted Major Upgrade detection from InstallScript on InstallShield Forum. Jun 24, 2019 05:39 PM
- Posted Custom Action of type Error - specifying placeholder in Error Message text on InstallShield Forum. Jul 17, 2018 04:37 PM
- Posted Re: InstallShield - Specifying icon for setup.exe on InstallShield Forum. Apr 26, 2018 04:39 PM
- Posted InstallShield - Specifying icon for setup.exe on InstallShield Forum. Apr 25, 2018 04:45 PM
- Posted Re: Different InstallShield Project types on InstallShield Forum. Apr 24, 2018 03:56 PM
- Posted InstrallShield Basic MSI uninstall does not display a dialog with Finish button on InstallShield Forum. Apr 19, 2018 06:23 PM
- Posted Different InstallShield Project types on InstallShield Forum. Apr 18, 2018 04:29 PM
- Posted Re: Digital signature not recognized when uninstalling from 'Apps & Features' on InstallShield Forum. Apr 17, 2018 05:12 PM
- Posted Re: Digital signature not recognized when uninstalling from 'Apps & Features' on InstallShield Forum. Apr 17, 2018 05:08 PM
- Posted Digital signature not recognized when uninstalling from 'Apps & Features' on InstallShield Forum. Mar 29, 2018 06:48 PM
- Posted Re: Digital signature not recognized when uninstalling from 'Apps & Features' on InstallShield Forum. Mar 28, 2018 05:07 PM
- Posted Digital signature not recognized when uninstalling from 'Apps & Features' on InstallShield Forum. Mar 22, 2018 06:42 PM
- Posted How to create a file with Data and Time information on InstallShield Forum. Feb 12, 2018 07:34 PM
- Posted How to use Date Property in InstallScript on InstallShield Forum. Feb 12, 2018 07:11 PM