Apr 22, 2015
03:30 PM
I had the variable "rec" defined as OBJECT instead of HWND. I am all set.
... View more
Apr 22, 2015
11:27 AM
I have a Basic MSI project. I have added 2 new Custom Actions to display the Progress Bar continuously during file copying. I have created a Deferred custom action that updates the Progress Bar, and an immediate custom action that informs the installer the total amount of ticks to add to the Progress Bar during the immediate and script execution phase of the script. I have subscribed these CustomActions to the SetupProgress customaction. What else should I do for this my product to get installed successfully with active progressbar display during the copying of the files. Following are the 2 functions I have added, to accomplish this. /////////////////////////////////////////////////////////////////////////////// // // Function: SetProgressTicks(HWND) // // Purpose: This function informs the installer the total amount of ticks // to add to the Progress Bar during the immediate and script execution // phase of the script // /////////////////////////////////////////////////////////////////////////////// function SetProgressTicks(hMSI) STRING svSupportDir, szvbFile, svWinSysDir, szProgram, szSourceFolder; OBJECT rec; NUMBER iResult, nTotalIncrement; HWND hRec; begin nTotalIncrement = 1000; rec = MsiCreateRecord(2); if (rec = 0) then LogIt(INFORMATION, "In SetProgressTicks - MsiCreateRecord failed"); endif; MsiRecordSetInteger(rec, 1, 3); MsiRecordSetInteger(rec, 2, nTotalIncrement); iResult = MsiProcessMessage(hMSI, INSTALLMESSAGE_PROGRESS, rec); if (iResult == IDCANCEL) then LogIt(INFORMATION, "In SetProgressTicks - MsiProcessMessage failed"); endif; end; /////////////////////////////////////////////////////////////////////////////// // // Function: SetProgressActionInfo(HWND) // // Purpose: This function is a deferred custom action that will also contain // the code to update the MSI Installer’s Progress Bar. // /////////////////////////////////////////////////////////////////////////////// function SetProgressActionInfo(hMSI) STRING svSupportDir, szvbFile, svWinSysDir, szProgram, szSourceFolder; HWND hProgressRec, hRec; NUMBER i, nTickIncrement, nItems, nTicks; NUMBER iResult; begin nTickIncrement = 100; nItems = 10; nTicks = 1000; hRec = MsiCreateRecord(3); //creating template MsiRecordSetString (hRec, 1, "Progress Custom Action"); MsiRecordSetString (hRec, 2, "Incrementing progress bar..."); MsiRecordSetString (hRec, 3, "Incrementing tick [1] or [2]"); iResult = MsiProcessMessage (hMSI, INSTALLMESSAGE_ACTIONSTART, hRec); // Tell the installer to use explicit progress messages. hProgressRec = MsiCreateRecord(3); MsiRecordSetInteger(hProgressRec, 1, 1); MsiRecordSetInteger(hProgressRec, 2, 1); MsiRecordSetInteger(hProgressRec, 3, 0); iResult = MsiProcessMessage (hMSI, INSTALLMESSAGE_PROGRESS, hProgressRec); //Specify that an update of the progress bar's position in //this case means to move it forward by one increment. MsiRecordSetInteger(hProgressRec, 1, 2); MsiRecordSetInteger(hProgressRec, 2, nTickIncrement); MsiRecordSetInteger(hProgressRec, 3, 0); // The following tells the installer to send a message to update // the progress bar its a loop. for i = 0 to nItems step nTickIncrement MsiRecordSetInteger(hRec, 1, i); iResult = MsiProcessMessage(hMSI, INSTALLMESSAGE_ACTIONDATA, hRec); iResult = MsiProcessMessage(hMSI, INSTALLMESSAGE_PROGRESS, hProgressRec); endfor; MsiCloseHandle(hRec); MsiCloseHandle(hProgressRec); end; I have added these 2 functions between the InstallInitialize and InstallFinalize CustomActions. The Deferred CustomAction is added to be exectuted just after the Immediate CustomAction. My installer fails. The following is the snippet of the log message I got during the installation. InstallShield 11:43:52: Initializing Engine InstallShield 11:43:53: Done Initializing... InstallShield 11:43:53: Registering Msi Server... InstallShield 11:43:53: Invoking script function SetProgressTicks InstallShield 11:43:53: Failed to run script function, error 0x80020009 InstallShield 11:43:53: CallScriptFunctionFromMsiCA() ends, result 0x643 InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\ISBEW64.exe InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\ISRT.dll InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\IsConfig.ini InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\String1033.txt InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\_isres_0x0409.dll InstallShield 11:43:53: Cleaning up temp file C:\Users\ELIZAB~1\AppData\Local\Temp\{FC644329-99CD-42DA-B23A-5AF27E9AD15C}\setup.inx CustomAction SetProgressTicks returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) Action ended 11:43:53: SetProgressTicks. Return value 3. Action ended 11:43:55: INSTALL. Return value 3. Action ended 11:43:56: ExecuteAction. Return value 3. Action start 11:43:56: SetupCompleteError. Action start 11:44:04: ISSetupFilesCleanup. Action ended 11:44:04: ISSetupFilesCleanup. Return value 1. Action ended 11:44:04: SetupCompleteError. Return value 2. Action ended 11:44:04: INSTALL. Return value 3. ********************************************************************************************************************************************************************** Thanks, Elizabeth.
... View more
Labels
- Labels:
-
InstallShield 2013
Oct 07, 2013
12:57 PM
I did add a custom action to Backup the setup log, as an action to be done when the Finish button is executed. I added it to run After DLLWrapCleanup in Install UI Sequence. This is the first time I am doing this, so not sure if I am doing this in the write sequence.
... View more
Oct 02, 2013
12:08 PM
Hi, I would like to make a backup of my install.log located in the %temp% folder at the of my installation. My project is a Basic MSI project. I want to copy this file into c:\programdata\ \.... folder. If I have a custom action to backup the log file, it displays the error "copying to failed. Error number -2147024894 The system cannot find the file specified". I am executing the copy only if the source file is found. So, which file is it looking for? Could it be that it is not able to copy the file since the log file is opened for write? Please help. Thanks, Elizabeth.
... View more
Labels
- Labels:
-
InstallShield 2013
Sep 13, 2013
11:03 AM
Hi, Not sure, if you still have this issue or not. This is what I did to pin a shortcut to start screen on Windows 8 system. Define the shell properties for the shortcut to be pinned to start screen. Click the + sign on Shell Properties. Key Name will be defined, accept the default keyname it generated. Expand the Key name, property and value will be displayed. Enter {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3},12 for the property setting. Enter 1 for the value setting Do this for each shortcut you want to pin to start screen. Elizabeth.
... View more
Sep 10, 2013
10:55 AM
Hi, I have different issues with shortcuts on both Windows 8.0 and Windows 8.1 system with InstiallShield 2013. On Windows 8.0, though I am adding only 2 shortcuts to the start screen and all others to the all apps screens, but there is one shortcut that appears on both start screen and All Apps screen. is there a way to prevent this. The MSIShortCutProperty set is same for all the All Apps shortcuts. On Windows 8.1 systems, there are no tiles added to the Start Screen at all. Is there a way to add the tile to the start the screen, even though "Pin to Wubdiws 8 Start Screen" is set to Yes? Thanks, Elizabeth.
... View more
Aug 07, 2013
04:18 PM
I get this error when installing a project built using IS 2013. I would like to know how to fix this error. Thanks, Elizabeth.
... View more
Labels
- Labels:
-
InstallShield 2013
Aug 07, 2013
03:39 PM
I upgraded my project from IS 2010 to IS 2013. My project installs successfully, but on uninstallation it seem to hang and eventually I have kill the task. I am not sure what I should be looking to troubleshoot this issue and fix it. Any help is appreciated very much.
... View more
Labels
- Labels:
-
InstallShield 2013
Jul 25, 2013
09:03 AM
When I uninstalled IS 2013 and re-installed IS 2013, my project got upgraded and it built successfully. Removal of ISCEAPP (mobile device support) did not cause any side issues.
... View more
Jul 25, 2013
09:00 AM
I thought all this problem was related. Half of my problem was due to bad installation of IS2013. I don't know what happened during my installation. For the setup.ini Unicode issue, I had to convert the Setup.ini to UTF-8, modify the file with our settings, and re-convert it back UTF16, setup.ini did not get corrupted. The second issue of running Custom Action in Deferred mode in System context was gone with re-installation of IS 2013.
... View more
Jul 22, 2013
02:46 PM
" InstallShield 2013 Builds Only Unicode Versions of Setup.exe and Update.exe; Ability to Create ANSI Versions Is No Longer Available" I have upgraded my Basic MSI project from IS 2010 to IS 2013. After making all the relevant changes needed to upgrade, I built the installer using makefile. InstallShield 2013 creates the unicode version of setup.ini file. During the build process, after the setup.ini is created, I have to modify the setup.ini add the language support and the product name based. If I use the same process used in building the InstallShield 2010 project, setup.ini file is modified. When Setup.exe is run, the installer fails with the error "Error reading setup initialization file". So I want to know the options I have to update the setup.ini file after it is generated by iscmdbld.exe. I tried converting the setup.ini to utf-8, and make the changes and convert it back as unicode. This way Setup does get started, but when it comes to running Custom Action functions in Deferred mode, I see the following error in the log file "InstallShield 18:25:26: Initializing Engine InstallShield 18:25:26: Failed to open script 'C:\Users\ELIZAB~1\AppData\Local\Temp\{1A104170-3DF3-44B9-9EB9-6D7D84220F0E}\setup.inx', error is -2147219455 InstallShield 18:25:26: Open Script operation failed, error is 0x80040801 InstallShield 18:25:30: Failed to invoke __ISWIUnInit, error is 0x8000ffff InstallShield 18:25:30: Failed to invoke __ISRTUninit, error is 0x8000ffff InstallShield 18:25:31: Initialize() Failure, Failed to Initialize script support, Error = 0x80040801". Though the installation proceeds and completes, the product I install does not get launched correctly. Please help. Elizabeth.
... View more
Labels
- Labels:
-
InstallShield 2013
Jun 21, 2013
10:07 AM
I did get an answer from the Flexera support team for this ISCEApp table. This table refers to support for Mobile devices. This is deprecated in IS 2013, so my project should be referencing a Mobile Device support and thus the build failure. Now I have to find out where that reference is in our project.
... View more
Jun 14, 2013
10:06 AM
Yes I found the same issue on my system. When I looked at the build log it was due to the removal of the ISCEAPP table. After I included this, the build worked fine. I have already opened a case with Flexera for support on IS2013. I sure do hope it gets fixed.:)
... View more
Jun 10, 2013
02:32 PM
I reverted my changes and just did an upgrade of IS2010 .ism file to IS 2013 file, and tried to build. I get the same error. When I upgraded the same .ism file into IS 1012 file, the upgrade was successfull, and I could build it successfully. I have opened a case with Flexera asking for support.
... View more
Jun 10, 2013
08:48 AM
I verified the architecture validation, it is set as "Lenient"; The .ism file is generated from a xml file. Originally I upgraded my IS 2010 ism file to IS 2013. Noted the difference and updated the xml file to generate the ism file. The project compiles when I opened the project using the UI, but fails to build. I did remove the deprecated tables, and added the new tables as it was in the .770 files. Have I missed a step in this? I am going to revert my changes, and generate the new .ism project, if nothing works. I want to see if there is anything obvious I have missed in doing the manual upgrade. Any help is very much appreciated. Thanks.
... View more
Latest posts by jesuraj
Subject | Views | Posted |
---|---|---|
1008 | Apr 22, 2015 03:30 PM | |
1518 | Apr 22, 2015 11:27 AM | |
611 | Oct 07, 2013 12:57 PM | |
1375 | Oct 02, 2013 12:08 PM | |
1473 | Sep 13, 2013 11:03 AM | |
1864 | Sep 10, 2013 10:55 AM | |
2664 | Aug 07, 2013 04:18 PM | |
1402 | Aug 07, 2013 03:39 PM | |
1141 | Jul 25, 2013 09:03 AM | |
1432 | Jul 25, 2013 09:00 AM |
Activity Feed
- Posted It crashed due to my mistake in the code on InstallShield Forum. Apr 22, 2015 03:30 PM
- Posted Installations fails with 1603 to display Progress bar for a custom action on InstallShield Forum. Apr 22, 2015 11:27 AM
- Posted CustomAction is added on InstallShield Forum. Oct 07, 2013 12:57 PM
- Posted How to backup a copy of an install log? on InstallShield Forum. Oct 02, 2013 12:08 PM
- Posted solution to pin shortcut to start screen on Windows 8 system. on InstallShield Forum. Sep 13, 2013 11:03 AM
- Posted Is there a way to add a tile to the Windows 8.1 start screen? on InstallShield Forum. Sep 10, 2013 10:55 AM
- Posted Error extracting ISBEW64.exe from ISLockPermission.dll on InstallShield Forum. Aug 07, 2013 04:18 PM
- Posted Uninstall hangs - what could the reason be? on InstallShield Forum. Aug 07, 2013 03:39 PM
- Posted Problem got resolved by uninstalling IS 2013 and re-installing IS 2013 on InstallShield Forum. Jul 25, 2013 09:03 AM
- Posted Uninstalling IS 2013 and re-installing IS 2013 resolved my problems. on InstallShield Forum. Jul 25, 2013 09:00 AM
- Posted How to update setup.ini after it is created? on InstallShield Forum. Jul 22, 2013 02:46 PM
- Posted Reason for build failure after upgrade from IS 2010 to IS 2013 on InstallShield Forum. Jun 21, 2013 10:07 AM
- Posted same issue here on InstallShield 2013. on InstallShield Forum. Jun 14, 2013 10:06 AM
- Posted current status on InstallShield Forum. Jun 10, 2013 02:32 PM
- Posted Type is Lenient. on InstallShield Forum. Jun 10, 2013 08:48 AM
- Posted How to specify the type of architecture Validation? on InstallShield Forum. Jun 07, 2013 04:29 PM
- Posted How to get Command line parameters passed in MSI Installer on InstallShield Forum. Feb 15, 2013 10:18 AM
- Posted What else should I be doing to get the Short cuts added correctly? on InstallShield Forum. Dec 05, 2012 02:53 PM