This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
savy17
Level 5
- Revenera Community
- :
- About savy17
Feb 09, 2011
01:59 PM
I have the same issue. I am including the .Net 4.0 (Full) as a prerequisite. However when I try to build the installer, I am getting the following errors. As you have suggested,on redistributables view, I did Download All Required Items but still getting these errors. Any suggestions? ISDEV : error -1007: Cannot copy source 'C:\Program Files (x86)\InstallShield\2010\SetupPrerequisites\Windows Installer\3.1\x86\WindowsInstaller-KB893803-v2-x86.exe' to target 'C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{57bcd1d4-2de9-49d9-bc0c-3f4263e9970e}\WindowsInstaller-KB893803-v2-x86.exe' ISDEV : error -5054: Could not determine the size of the file "C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{57bcd1d4-2de9-49d9-bc0c-3f4263e9970e}\WindowsInstaller-KB893803-v2-x86.exe" ISDEV : error -1007: Cannot copy source 'C:\Program Files (x86)\InstallShield\2010\SetupPrerequisites\WindowsImagingComponent\x86\wic_x86_enu.exe' to target 'C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{2A0CC195-B3AF-4B63-8F5C-1F88A7E28ADF}\wic_x86_enu.exe' ISDEV : error -5054: Could not determine the size of the file "C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{2A0CC195-B3AF-4B63-8F5C-1F88A7E28ADF}\wic_x86_enu.exe" ISDEV : error -1007: Cannot copy source 'C:\Program Files (x86)\InstallShield\2010\SetupPrerequisites\Windows Installer\3.1\x86\WindowsServer2003-KB898715-x86-enu.exe' to target 'C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{57bcd1d4-2de9-49d9-bc0c-3f4263e9970e}\WindowsServer2003-KB898715-x86-enu.exe' ISDEV : error -5054: Could not determine the size of the file "C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{57bcd1d4-2de9-49d9-bc0c-3f4263e9970e}\WindowsServer2003-KB898715-x86-enu.exe" ISDEV : error -1007: Cannot copy source 'C:\Program Files (x86)\InstallShield\2010\SetupPrerequisites\WindowsImagingComponent\x64\wic_x64_enu.exe' to target 'C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{7CF06819-7AA4-4e3e-AC77-07931178671B}\wic_x64_enu.exe' ISDEV : error -5054: Could not determine the size of the file "C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{7CF06819-7AA4-4e3e-AC77-07931178671B}\wic_x64_enu.exe" ISDEV : error -1007: Cannot copy source 'C:\Program Files (x86)\InstallShield\2010\SetupPrerequisites\Windows Installer\3.1\ia64\WindowsServer2003-KB898715-ia64-enu.exe' to target 'C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{ce5f9d26-8a64-470b-a408-6d19381f5018}\WindowsServer2003-KB898715-ia64-enu.exe' ISDEV : error -5054: Could not determine the size of the file "C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{ce5f9d26-8a64-470b-a408-6d19381f5018}\WindowsServer2003-KB898715-ia64-enu.exe" ISDEV : error -1007: Cannot copy source 'C:\Program Files (x86)\InstallShield\2010\SetupPrerequisites\Windows Installer\3.1\x64\WindowsServer2003-KB898715-x64-enu.exe' to target 'C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{7f53ac5d-d59d-4f72-b8d3-2cc3bb6383ce}\WindowsServer2003-KB898715-x64-enu.exe' ISDEV : error -5054: Could not determine the size of the file "C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{7f53ac5d-d59d-4f72-b8d3-2cc3bb6383ce}\WindowsServer2003-KB898715-x64-enu.exe" ISDEV : error -1007: Cannot copy source 'C:\Program Files (x86)\InstallShield\2010\SetupPrerequisites\Windows Installer\3.1\x64\WindowsXP-KB898715-x64-enu.exe' to target 'C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{531950bf-fab7-4434-8ca7-b5893ab197f8}\WindowsXP-KB898715-x64-enu.exe' ISDEV : error -5054: Could not determine the size of the file "C:\Installer Builds\D\CDROM\DiskImages\DISK1\ISSetupPrerequisites\{531950bf-fab7-4434-8ca7-b5893ab197f8}\WindowsXP-KB898715-x64-enu.exe" MichaelU wrote: InstallShield Prerequisites will fall back to downloading at installation time, so that's probably why this appears to work. If you want to include the full data in your build so a customer won't have to download these, you should go to the redistributables view, right click in the list, and select Download All Required Items. If you do not want to include these directly in your build, you should instead change the settings on each prerequisite (right click it and select Properties), and/or on your release configuration (Setup.exe tab).
... View more
Dec 08, 2010
03:59 PM
Can anybody suggest why its not working... savy17 wrote: I am creating an Basic MSI installer. I need to make sure that the application that I am installing is not currently running. In order to do so, I created a VBScript which checks whether the application is running or not. If the application is running, it displays a message box asking the user to close the application. The messagebox has two buttons Retry and Cancel. When Retry is clicked, I am calling same function recursively to verify that the user has closed the application. However if the user clicks cancel, I want to abort the installation. If my Hello World.exe is running, it shows the message box with two buttons. If I close the application now and then click Retry again, it proceed with the installation. However, Cancel seems not working correctly. If the message box is displayed very first time and user clicks 'Cancel', it aborts the installation. However if user clicks Retry (without closing the application) one or more time, and then afterward click Cancel, it doesn't abort the application. Any suggestion what I am doing wrong. I would appreciate any help. Thanks. Here is the vbscript function CheckRunningProcess that I am calling from the custom action in my installer. Function CheckRunningProcess() Const IDABORT = 3 Dim Wmi, Wql, Processes Set Wmi = GetObject("winmgmts:") Wql = "select * from Win32_Process where name ='Hello World.exe'" Set Processes = wmi.execquery(wql) If Processes.Count > 0 Then result = MsgBox ("Hello World is running. Please Close Hello World",vbRetryCancel+vbDefaultButton2,"Close Running Application") If result = 4 Then FindProcess() ElseIf result = 2 Then FindProcess = IDABORT Else FindProcess = IDABORT End If End If End Function
... View more
Dec 03, 2010
02:45 PM
I am creating an Basic MSI installer. I need to make sure that the application that I am installing is not currently running. In order to do so, I created a VBScript which checks whether the application is running or not. If the application is running, it displays a message box asking the user to close the application. The messagebox has two buttons Retry and Cancel. When Retry is clicked, I am calling same function recursively to verify that the user has closed the application. However if the user clicks cancel, I want to abort the installation. If my Hello World.exe is running, it shows the message box with two buttons. If I close the application now and then click Retry again, it proceed with the installation. However, Cancel seems not working correctly. If the message box is displayed very first time and user clicks 'Cancel', it aborts the installation. However if user clicks Retry (without closing the application) one or more time, and then afterward click Cancel, it doesn't abort the application. Any suggestion what I am doing wrong. I would appreciate any help. Thanks. Here is the vbscript function CheckRunningProcess that I am calling from the custom action in my installer. Function CheckRunningProcess() Const IDABORT = 3 Dim Wmi, Wql, Processes Set Wmi = GetObject("winmgmts:") Wql = "select * from Win32_Process where name ='Hello World.exe'" Set Processes = wmi.execquery(wql) If Processes.Count > 0 Then result = MsgBox ("Hello World is running. Please Close Hello World",vbRetryCancel+vbDefaultButton2,"Close Running Application") If result = 4 Then FindProcess() ElseIf result = 2 Then FindProcess = IDABORT Else FindProcess = IDABORT End If End If End Function
... View more
Labels
- Labels:
-
InstallShield 2010
Dec 02, 2010
03:18 PM
Reureu wrote: Well, the code I previously mentioned in the thread is InstallScript. It is not VB, although it does look similar. If you want to use the code, you will need to create an InstallScript custom action. Alternatively, you can rewrite it in VB, but I cannot help you with that. Regards Thanks Reureu for the quick response. I have created a vb script for the same purpose which is running fine with a small glitch and have posted the question on different thread. Thank you once again for your help.
... View more
Dec 02, 2010
11:07 AM
It complains of Syntax error at the first line itself. So I am not able to proceed further. I don't have much knowledge of VB Script. I was just trying to copy and paste the code that was found in this thread. I am stuck. Microsoft VBScript compilation error: Syntax error Line 1, Column 33, prototype ISGetObj.ForEachStart(byref OBJECT, byref VARIANT); Any help please
... View more
Dec 01, 2010
05:08 PM
I have Basic MSI installation that I am working on. I need to find out whether the application that I am upgrading/repairing is running or not. If running, then I don't want to continue with the installation. I added the custom action named "CheckRunningProcess" that runs the script given over here. And also added IsGetObj.dll to Support Files. However when I run the installer, it fails with the following error message in installer log Action start 15:19:41: CheckRunningProcess. Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action CheckRunningProcess script error -2146827286, Microsoft VBScript compilation error: Syntax error Line 1, Column 33, prototype ISGetObj.ForEachStart(byref OBJECT, byref VARIANT); MSI (c) (DC:2C) [15:19:45:641]: Product: SampleInstaller -- Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action CheckRunningProcess script error -2146827286, Microsoft VBScript compilation error: Syntax error Line 1, Column 33, prototype ISGetObj.ForEachStart(byref OBJECT, byref VARIANT); Action ended 15:19:45: CheckRunningProcess. Return value 3. Not sure what I am doing wrong. Any suggestion please.
... View more
Apr 02, 2010
12:45 PM
On SetupCompleteSuccess dialog, on Behavior section, you can set the conditions for the ControlName(whatever name is for box/text ). Click on Conditions tab and probably can use Action Condition Show NOT Installed OR (Installed AND _IsMaintenance="Change") Hide Installed AND (_IsMaintenance="Reinstall" OR _IsMaintenance="Remove")
... View more
Mar 12, 2010
09:39 AM
I figured it out. Execution condtion were not correct for remove custom action. Also, instead of checking for component, now I am checking for feature. The condition that I have set are for Add, &Feature1=3 and for remove &Feature1=2 savy17 wrote: I am using Basic MSI. In my insaller, I have a feature and 2 subfeatures under this feature. By default, all the featuers and subfeatures are set not to install. So I set the install level for the feature and all 2 subfeatures to 200 (which is greater than INSTALLLEVEL value). I have 4 custom action related to these 2 subfeatures. Two for each subfeature. Say for first subfeature Feature1, I have two custom actions CAFeature1Add and CAFeature1Remove. and for second subfeature Feature2, I have CAFeature2Add and CAFeature2Remove. During installation, if subfeature is selected, its related "Add" custom action needs to be run and if subfeature is not selected, its related "remove" custom action needs to be run. So if Feature1 is selected and Feature2 is not selected, then custom actions CAFeature1Add and CAFeature2Remove needs to be executed. I have set the condition to execute these custom actions as $feature1.dll=3 for CAFeature1Add and $feature1.dll<>3 for CAFeature1Remove. feature1.dll is present only when Feature1 is installed. Similar conditions check for $feature2.dll is done for Feature2 custom actions The behavior that I am seeing is - During fresh install, all the features in feature selection dialog are shown as do not install. If I choose to say install Feature1 and leave Feature2 as not install, the custom action that will be running are CAFeature1Add and CAFeature2Remove. Now during maintenance mode during modify, if I chose to say also install Feature2 (so at this stage, both features are set to install. Feature1 already installed, Feature2 set to install), the custom action that runs are CAFeature1Remove and CAFeature2Add. But actually it should have run CAFeature1Add and CAFeature2Add because Feature1 is still selected. I can see the dll for feature1 is still there but the custom action condition returns false condition. BUT if I simply click on Feature1 selection tree without changing it (i.e. Feature1 is still said to be install as it has been installed during first time install, I simply clicked on that feature selection tree only), then I see that CAFeature1Add is called now... Seems once the feature is clicked, then only correct condition is triggered I even tried with checking for feature name instead of component for execution condtion but still same result... Can anyone please help how to solve it
... View more
Mar 08, 2010
04:48 PM
I am using Basic MSI. In my insaller, I have a feature and 2 subfeatures under this feature. By default, all the featuers and subfeatures are set not to install. So I set the install level for the feature and all 2 subfeatures to 200 (which is greater than INSTALLLEVEL value). I have 4 custom action related to these 2 subfeatures. Two for each subfeature. Say for first subfeature Feature1, I have two custom actions CAFeature1Add and CAFeature1Remove. and for second subfeature Feature2, I have CAFeature2Add and CAFeature2Remove. During installation, if subfeature is selected, its related "Add" custom action needs to be run and if subfeature is not selected, its related "remove" custom action needs to be run. So if Feature1 is selected and Feature2 is not selected, then custom actions CAFeature1Add and CAFeature2Remove needs to be executed. I have set the condition to execute these custom actions as $feature1.dll=3 for CAFeature1Add and $feature1.dll<>3 for CAFeature1Remove. feature1.dll is present only when Feature1 is installed. Similar conditions check for $feature2.dll is done for Feature2 custom actions The behavior that I am seeing is - During fresh install, all the features in feature selection dialog are shown as do not install. If I choose to say install Feature1 and leave Feature2 as not install, the custom action that will be running are CAFeature1Add and CAFeature2Remove. Now during maintenance mode during modify, if I chose to say also install Feature2 (so at this stage, both features are set to install. Feature1 already installed, Feature2 set to install), the custom action that runs are CAFeature1Remove and CAFeature2Add. But actually it should have run CAFeature1Add and CAFeature2Add because Feature1 is still selected. I can see the dll for feature1 is still there but the custom action condition returns false condition. BUT if I simply click on Feature1 selection tree without changing it (i.e. Feature1 is still said to be install as it has been installed during first time install, I simply clicked on that feature selection tree only), then I see that CAFeature1Add is called now... Seems once the feature is clicked, then only correct condition is triggered I even tried with checking for feature name instead of component for execution condtion but still same result... Can anyone please help how to solve it
... View more
Labels
- Labels:
-
InstallShield 2010
Mar 04, 2010
11:36 AM
Hidenori, I still have one issue. With the vbscript that you gave, it works fine when I click the browse button on SQL Login page. It opens list box without SQLEXPRESS instances. However if you click on the combo box (drop down control), you can still be able to see SQLEXPRESS instance of local server and it shows two entries 1. (local)\MyInstance 2. (local)\SQLEXPRESS Instead I would like to see only MyInstance. So (local)\MyInstance. I guess I would have to write another vb script to do that but don't know which properties to modify. Can you please suggest me what to do to get this? Thanks,
... View more
Mar 02, 2010
03:08 PM
Thanks hidenori for all the suggestion and help. It is working now.
... View more
Mar 02, 2010
12:44 PM
I have also tried with immediate execution but it is also not working.. However when I have immediate execution, I am not getting earlier error, but when I click the BtnSqlBrowse push button, The InstallShield Wizard Completed dialog is shown with the message "The wizard was interrupted before MyApplication could be completely installed." If I look through the msi.log, it has following entry Action start 12:31:34: ISSQLServerList. Action ended 12:31:41: ISSQLServerList. Return value 1. Action 12:31:41: CustomizeSQLServerList. Action start 12:31:41: CustomizeSQLServerList. Action ended 12:31:41: CustomizeSQLServerList. Return value 3. Info 2896.Executing action CustomizeSQLServerList failed. Action ended 12:31:41: InstallWelcome. Return value 3. Action 12:31:41: SetupCompleteError. CustomizeSQLServerList is the name of my custom action While creating a Custom action, I have chosen location ->Stored in a Binary Table Source -> \script files\CustomizeSQLServerList.vbs Target -> CustomizeSQLServerList( ) which is my function name Return Processing -> Synchronous (Check exit code) In-Script Execution -> Immediate Execution Execution Scheduling -> Always execute Install UI Sequence -> Absent from sequence Install Execute Sequence -> Absent from sequence I don't know what wrong I am doing but I am not able to get it right.. Please help. hidenori wrote: You must use an immediate execution custom action for this because of the Limitations of deferred execution custom actions.
... View more
Mar 02, 2010
11:25 AM
Thanks for the reply. However I am getting Error 2762. Cannot write script record. Transaction not started. So far what I have done is: Created a VB Script with the code that you have given. Created the custom action to run the vb script. In Custom Action, I set the following properties In-Script Execution -> Deferred Execution in System Context Install Exec Sequence -> After RemoveRegistryValues Then I am running this custom action from BtnSQLBrowse push button control on SQLLogin dialog. I added a DoAction event which is sequenced between "DoAction ISSQLServerList" and "SpawnDialog SQLBrowse" events. However when I run the installer and click BtnSQLBrowse push button, it gives the above mentioned error 2762. Please let me know what different I have to do hidenori wrote: You need to run your custom action from the BtnSQLBrowse push button control on the SQLLogin dialog through the DoAction event. It needs to be sequenced between "DoAction ISSQLServerList" and "SpawnDialog SQLBrowse" events. Also, you may want to use the InStr() VBScript function in order to find all instances of SQLEXPRESS: if(InStr(reclist.StringData(4), "\SQLEXPRESS") > 0)
... View more
Mar 01, 2010
05:29 PM
Hi hidenori, Thanks for your reply. I tried as you said. Created a VBScript and in Custom Action, said to Run the VBScript stored at Binary. Its Install Exec Sequence is set to execute 'After InstallInitialize' However it is making no changes. I can see (local)\SQLEXPRESS instance in the Browse button. I also tried to run this custom action through DOAction event on the Browse Button on SQLLogin dialog but no effect. I am not sure what I am doing wrong. Also, from the IS_SQLSERVER_LIST, I would like to filter out all the SQLEXPRESS instances. Be it (local)\SQLEXPRESS or somecomputer\SQLEXPRESS on network like Computer1234\SQLEXPRESS, Computer1235\SQLEXPRESS. To acheive this, what changes need to be made to the script function? Hope to get some solution. Thanks hidenori wrote: If you are using a Basic MSI project, you can write a custom action that will modify items of a List Box. The following is a sample VBScript that will delete the "(local)\SQLEXPRESS" entry from the IS_SQLSERVER_LIST List Box. Const msiViewModifyDelete = 6 Const IDOK = 1 Function CustomizeSQLServerList( ) ' open and execute a view to the ListBox table Set viewlist = Database.OpenView("SELECT * FROM `ListBox` WHERE `Property`='IS_SQLSERVER_LIST'") viewlist.Execute Set reclist = viewlist.Fetch While Not (reclist Is Nothing) If reclist.StringData(4)="(local)\SQLEXPRESS" Then ' delete the ListBox record viewlist.Modify msiViewModifyDelete, reclist End If ' fetch the next ListBox record Set reclist = viewlist.Fetch Wend ' clean up viewlist.Close ' return success to MSI CustomizeSQLServerList = IDOK End Function Hope that helps.
... View more
Feb 23, 2010
12:18 PM
Can anybody help me out with this problem? Or is it simply not possible? savy17 wrote: Is it possible to show only the specified instance of SQL Server in a dialog that opens when SQL Browse button is clicked. Suppose, I have 2 computers on a network having SQL Server Express installed and each computer has 2 instances. Say Comp1/Instance1, Comp1/Instance2, Comp2/Instance1 and Comp2/Instance2 Right now when I click SQL Browse, the list shows all of them - Comp1/Instance1, Comp1/Instance2, Comp2/Instance1 and Comp2/Instance2 I want to filter and only show the Instance1 when clicking the SQL Browse button. So that the dialog should only show Comp1/Instance1, Comp2/Instance2. Is there any way to filter the list???
... View more
Latest posts by savy17
Subject | Views | Posted |
---|---|---|
1181 | Feb 09, 2011 01:59 PM | |
816 | Dec 08, 2010 03:59 PM | |
2550 | Dec 03, 2010 02:45 PM | |
4884 | Dec 02, 2010 03:18 PM | |
4884 | Dec 02, 2010 11:07 AM | |
4884 | Dec 01, 2010 05:08 PM | |
815 | Apr 02, 2010 12:45 PM | |
993 | Mar 12, 2010 09:39 AM | |
3329 | Mar 08, 2010 04:48 PM | |
2375 | Mar 04, 2010 11:36 AM |
Activity Feed
- Posted Re: Dot Net 4 included as download prerequisite; 14 errors follow but still works on InstallShield Forum. Feb 09, 2011 01:59 PM
- Posted Please Help.. Its urgent on InstallShield Forum. Dec 08, 2010 03:59 PM
- Posted IDABORT is not aborting installation in all scenarios when called in VB Script on InstallShield Forum. Dec 03, 2010 02:45 PM
- Posted Re: how do I check if my application is running on InstallShield Forum. Dec 02, 2010 03:18 PM
- Posted Re: how do I check if my application is running on InstallShield Forum. Dec 02, 2010 11:07 AM
- Posted Checking if process is running on InstallShield Forum. Dec 01, 2010 05:08 PM
- Posted Re: How to control 'View Readme file' display on install finish dialog on InstallShield Forum. Apr 02, 2010 12:45 PM
- Posted Re: custom action based on feature selection not executing correctly on InstallShield Forum. Mar 12, 2010 09:39 AM
- Posted custom action based on feature selection not executing correctly on InstallShield Forum. Mar 08, 2010 04:48 PM
- Posted SQLEXPRESS instance still visible in drop down control on InstallShield Forum. Mar 04, 2010 11:36 AM
- Posted Re: Filtered list displaying specific instance of SQL Server on SQL Browse on InstallShield Forum. Mar 02, 2010 03:08 PM
- Posted Re: Filtered list displaying specific instance of SQL Server on SQL Browse on InstallShield Forum. Mar 02, 2010 12:44 PM
- Posted Error 2762: Cannot write script record on InstallShield Forum. Mar 02, 2010 11:25 AM
- Posted Re: Filtered list displaying specific instance of SQL Server on SQL Browse on InstallShield Forum. Mar 01, 2010 05:29 PM
- Posted Re: Filtered list displaying specific instance of SQL Server on SQL Browse on InstallShield Forum. Feb 23, 2010 12:18 PM
- Posted Filtered list displaying specific instance of SQL Server on SQL Browse on InstallShield Forum. Feb 19, 2010 02:52 PM
- Posted Re: Referenced DLL Missing in Managed Custom Action on InstallShield Forum. Jan 20, 2010 12:27 PM
- Posted Re: Referenced DLL Missing in Managed Custom Action on InstallShield Forum. Jan 17, 2010 11:59 AM
- Posted Re: Referenced DLL Missing in Managed Custom Action on InstallShield Forum. Jan 17, 2010 11:45 AM
- Posted Referenced dll missing in Managed Custom Action on InstallShield Forum. Jan 17, 2010 11:41 AM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Mar 18, 2019
12:11 PM
|