IBM Client Acces Express 5.2
Hello, I have a question if anyone can help me with client access express. I have created a msi pacakge with wise package studio that works fine. I have distribute this msi with the AD and it works fine. But when i remove it from the machine i get an windows installer message 2738. The msi package is trying to do something with windows host scripting, but i cannot find the error.
Is there anyone who can help me to make a nice package from client access express 5.2.
thanx in advance
ruud jacobs
the netherlands
Is there anyone who can help me to make a nice package from client access express 5.2.
thanx in advance
ruud jacobs
the netherlands
0 Comments
[ + ] Show comments
Answers (21)
Please log in to answer
Posted by:
MSIPackager
19 years ago
Hi,
If it's "Could not access VBScript runtime for custom action [CUSTOMACTIONNAME]" then it's probably because Windows Scripting Host (WSH) isn't installed on the target machine. v5.6 is part of XP but I'm not sure about for previous OS versions.
Does that sound likely? If so you can download is and install it on your test machine to prove it here: http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
Cheers,
Rob.
If it's "Could not access VBScript runtime for custom action [CUSTOMACTIONNAME]" then it's probably because Windows Scripting Host (WSH) isn't installed on the target machine. v5.6 is part of XP but I'm not sure about for previous OS versions.
Does that sound likely? If so you can download is and install it on your test machine to prove it here: http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
Cheers,
Rob.
Posted by:
revizor
19 years ago
Sejacru,
out of curiosity, how did you manage to repackage CAE? Did you wrap a custom action, or ran snapshot/ monitoring?
I know CAE uses IBM's proprietary procedures to register their dll's, and requires admin logon post install (can get around that req, though). Overall, its original setup experience is pretty bad, according to user forums. Especially IBM's suggestion "If automated deployment via answer file fails, do a manual deployment instead" doesn't quite cut it for the enterprise environment, does it?
Which SI# did you use?
CAE is the only app that goes onto base image in my company. Even when we pushed it through SMS ("setup.exe -s -sms"), it was failing in about 15% of deployments, which was straight plain unacceptable.[:'(]
out of curiosity, how did you manage to repackage CAE? Did you wrap a custom action, or ran snapshot/ monitoring?
I know CAE uses IBM's proprietary procedures to register their dll's, and requires admin logon post install (can get around that req, though). Overall, its original setup experience is pretty bad, according to user forums. Especially IBM's suggestion "If automated deployment via answer file fails, do a manual deployment instead" doesn't quite cut it for the enterprise environment, does it?
Which SI# did you use?
CAE is the only app that goes onto base image in my company. Even when we pushed it through SMS ("setup.exe -s -sms"), it was failing in about 15% of deployments, which was straight plain unacceptable.[:'(]
Posted by:
sejacru
19 years ago
Hello revizor,
I have a package that works for 99%. Deployment is computerbased. I ran snapshot/monitoring in wise package studio 5.5. After repackiging the application on minor issues the package lets it self install through AD. I was very pleased with this because in march i had tried to package the app also and then it was a hell. I
did nothing different then i did in march (i think?). Deinstalling the package also works fine, but the pc is not working as good as before the installation. I know this because after the deinstall i tried to install the app again. This is going very wrong. I still get the windows installer error 2738. Rob tells me to install wsh 5.6 on a test machine, so Thursday (28-07-2005) i´m trying this.
Install sequence with snapshot/monitoring:
* setup.exe (normal installation)
* reboot
* install service pack
* reboot
* repack the app on minor issues (regkeys etc)
greetings sejacru
I have a package that works for 99%. Deployment is computerbased. I ran snapshot/monitoring in wise package studio 5.5. After repackiging the application on minor issues the package lets it self install through AD. I was very pleased with this because in march i had tried to package the app also and then it was a hell. I
did nothing different then i did in march (i think?). Deinstalling the package also works fine, but the pc is not working as good as before the installation. I know this because after the deinstall i tried to install the app again. This is going very wrong. I still get the windows installer error 2738. Rob tells me to install wsh 5.6 on a test machine, so Thursday (28-07-2005) i´m trying this.
Install sequence with snapshot/monitoring:
* setup.exe (normal installation)
* reboot
* install service pack
* reboot
* repack the app on minor issues (regkeys etc)
greetings sejacru
Posted by:
sejacru
19 years ago
Posted by:
revizor
19 years ago
Well, comrade...
About 18 months ago I spent two weeks attempting to repackage CAE with Wininstall 2000 LE. That didn't fly too well.
Now, after your post, I hit it off with InstallShield. From what I can see, the first attempt with InstallShield was a surprising success.
Not sure what may cause your package to fail on uninstall. The only thing I can think of is that CAE modifies environment variable PATH. Check its value after removal of CAE, 'cause it may cause problems.
Also check the log - nothing gives you more clues when you don't know where to start.
About 18 months ago I spent two weeks attempting to repackage CAE with Wininstall 2000 LE. That didn't fly too well.
Now, after your post, I hit it off with InstallShield. From what I can see, the first attempt with InstallShield was a surprising success.
Not sure what may cause your package to fail on uninstall. The only thing I can think of is that CAE modifies environment variable PATH. Check its value after removal of CAE, 'cause it may cause problems.
Also check the log - nothing gives you more clues when you don't know where to start.
Posted by:
sejacru
19 years ago
Posted by:
revizor
19 years ago
I used a little bit different approach to repackaging CAE.
First of all, I slip-streamed the latest service pack into V5R2.
I created an .iss answer file for unattended setup of the application through the original installer. The .iss file provides standard package configuration that goes to our workstations.
On XP stations, set DriverSigning policy to Ignore – otherwise Print driver will fail.
My packaging tool of choice was InstallShield Repackager, the Installation Monitoring option.
=== start capture or monitoring here ===
Run setup.exe –s –sms
After the installation, the registry’s HKLM’s Run entries generated by the application installer need to be removed, with the exception of the service entry cwbsvstr.exe (otherwise macros may fail inside the emulator).
Since one of the Run entries is actually meant to be RunOnce, and is responsible for handling dll registration on first logon (therefore, original setup required administrative logon after the application deployment), we need to kick off dll registration to eliminate admin context logon dependency. Do not mark CAE dll’s for self-registration inside the MSI package – IBM uses its own registration modules; regsvr32.exe won’t handle those. Instead, run cwbsreg.exe. This executable will read the dll registration queue out of the cwbsreg.ini file. Here’s the content of our .ini file (from a Win2k station, not sure if it translates environment variables inside the .ini file):
=== cwbsreg.ini ===
[DllRegisterServer]
File1=C:\Program Files\IBM\Client Access\Shared\CWBX.DLL
File2=C:\WINNT\system32\COMCAT.DLL
File3=C:\WINNT\system32\MFC40.DLL
File4=C:\WINNT\system32\MFC42.DLL
File5=C:\WINNT\system32\MSVBVM50.DLL
File6=C:\WINNT\system32\MSVBVM60.DLL
File7=C:\WINNT\system32\OLEAUT32.DLL
File8=C:\WINNT\system32\OLEPRO32.DLL
File9=C:\WINNT\system32\VBSCRIPT.DLL
File10=C:\Program Files\IBM\Client Access\Emulator\AUTREG.DLL
File11=C:\WINNT\system32\cwbzzodb.dll
File12=C:\Program Files\IBM\Client Access\cwbzzidx.dll
[RegTlbFile32]
File1=C:\WINNT\system32\STDOLE2.TLB
=== EOF ===
Once you run cwbsreg.exe, the .ini file gets removed. Now, CAE does not require a reboot after the installation.
Make cosmetic changes as you please (pre-configuration, shortcuts, restrictions, session definitions).
=== stop capturing or monitoring; process the package ===
Restore your original Driver signing policy setting.
Crack open a beer – you are about to get into the fun part. Compile the MSI file. Do your editing & tweaking.
I am yet to revisit some issues here & there, specifically the implications of having oem#.inf & oem#.pnf files dropped onto a PC, and potential naming conflicts due to that. From what I can see, the .msi works just fine for both installation & uninstallation.
If your .msi file captured .isu’s created during legacy setup process, I can send you two uninstaller .vbs scripts that I wrote to remove CAE in unattended mode (one scans the registry to determine how to remove CAE, another works off the file system, and does a better job for “blown up†or partial installations of CAE). Worst case, you can uninstall CAE through custom actions then.
Also, if you are familiar with the SMS Installer, you might find the following script listing useful for automation of your setup. I designed it for CAE roll-out/ upgrade within our environment, and I only do very basic error handling, but it should give you some guidance.
=== install.ipf ===
Document Type: IPF
item: Global
Version=6.0
Title English=CAE 5.2 Install
Flags=00000100
Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LanguagesList=English
Default Language=2
Copy Default=1
Japanese Font Name=MS Gothic
Japanese Font Size=9
Start Gradient=0 0 255
End Gradient=0 0 0
Windows Flags=00010100000000000010110001010110
Message Font=MS Sans Serif
Font Size=8
Disk Filename=SETUP
Patch Flags=0000000000000101
Patch Threshold=85
Patch Memory=4000
FTP Cluster Size=20
end
item: Set Variable
Variable=CAEVER
end
item: Set Variable
Variable=C
Value=C
end
item: Get Environment Variable
Variable=AU
Environment=ALLUSERSPROFILE
end
item: Get Environment Variable
Variable=PROGRAMFILES
Environment=ProgramFiles
Default=C:\Program Files
end
item: Get Environment Variable
Variable=PC
Environment=COMPUTERNAME
end
item: Get Environment Variable
Variable=USERNAME
Environment=USERNAME
end
item: Check if File/Dir Exists
Pathname=%WIN%\_delis32.ini
Flags=01000110
end
item: Remark
Text=Concurrent Installation?
end
item: Add Text to INSTALL.LOG
Text=32 - Concurrent installation?
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\silent.txt
Flags=01000100
end
item: Remark
Text=Don't need a log of previous install
end
item: Delete File
Pathname=%ProgramFiles%\IBM\Client Access\silent.txt
end
item: End Block
end
item: If/While Statement
Variable=USERNAME
Value=SYSTEM
Flags=00000010
end
item: Execute Program
Pathname=net.exe
Command Line=send %PC% "Installation in progress. Please do not use your PC. It will reboot after the installation is complete."
end
item: End Block
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Driver Signing
New Value=00
Value Name=Policy
Root=2
Data Type=4
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\cwbckver.exe
Flags=01000100
end
item: Get System Information
Variable=CAEVER
Pathname=%ProgramFiles%\IBM\Client Access\cwbckver.exe
Flags=00000101
end
item: If/While Statement
Variable=CAEVER
Value=9.0.0.1
Flags=00001000
end
item: Execute Program
Pathname=%INST%\setup.exe
Command Line=-s -sms -f1%INST%\upgrade.iss
Flags=00000010
end
item: End Block
end
item: Else Statement
end
item: Execute Program
Pathname=%INST%\setup.exe
Command Line=-s -sms
Flags=00000010
end
item: End Block
end
item: Remark
Text=Post-Install cleanup
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value Name=Client Access Check Version
Root=194
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value Name=Client Access Express Welcome
Root=194
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value Name=Client Access Help Update
Root=194
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value Name=CWBSREG
Root=194
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\IBM\Client Access\CurrentVersion\Selectively_Installable_Components\Client Access Express Base Support\WelcomeWizard
New Value=0
Value Name=Display
Root=2
Data Type=3
end
item: Delete File
Pathname=%AU%\Desktop\iSeries Navigator.lnk
end
item: Remark
Text=Create AS400 Sessions
end
item: Check if File/Dir Exists
Pathname=%C%:\AS400 Sessions
Flags=00000101
end
item: Execute Program
Pathname=%INST%\AS400Icons.exe
Flags=00000010
end
item: Edit INI File
Pathname=%ProgramFiles%\IBM\Client Access\Emulator\Private\AS400.KMP
Settings=[Profile]
Settings=id=KMP
Settings=
Settings=[KEYBOARD]
Settings=KEY1=[host print]
Settings=C-KEY7=[view 1]
Settings=KEY43=[enter]
Settings=S-KEY43=[enter]
Settings=C-KEY43=[dead]
Settings=KEY64=[newline]
Settings=S-KEY64=[newline]
Settings=KEY106=[field exit]
Settings=KEY108=[enter]
Settings=S-KEY108=[enter]
Settings=
end
item: Edit INI File
Pathname=%ProgramFiles%\IBM\Client Access\Emulator\Private\mouse.mmp
Settings=[Profile]
Settings=ID=MMP
Settings=[button]
Settings=d-lbutton=[pass]
Settings=d-rbutton=[pf4]
Settings=
end
item: End Block
end
item: Remark
Text=Error Checking
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\silent.txt
Flags=01000100
end
item: Set Variable
Variable=LOGCHK
end
item: Read/Update Text File
Variable=LOGCHK
Pathname=%ProgramFiles%\IBM\Client Access\silent.txt
end
item: If/While Statement
Variable=LOGCHK
Value=could not install
Flags=00000010
end
item: Add Text to INSTALL.LOG
Text=25 - %LOGCHK%
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: If/While Statement
Variable=LOGCHK
Value=error
Flags=00000010
end
item: Add Text to INSTALL.LOG
Text=15 - %LOGCHK%
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: End Block
end
item: Else Statement
end
item: Add Text to INSTALL.LOG
Text=99 - Silent install log not found
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\cwbinarp.exe
Flags=00000101
end
item: Remark
Text=Uninstaller file is missing
end
item: Add Text to INSTALL.LOG
Text=100 - Uninstaller missing
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\cwbckver.exe
Flags=01000100
end
item: Get System Information
Variable=CAEVER
Pathname=%ProgramFiles%\IBM\Client Access\cwbckver.exe
Flags=00000101
end
item: If/While Statement
Variable=CAEVER
Value=9.0.0.1
Flags=00001000
end
item: Add Text to INSTALL.LOG
Text=29 - CAE version: %CAEVER%
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Edit INI File
Pathname=%PROGRAMFILES%\IBM\Client Access\cwbsreg.ini
Settings=[DllRegisterServer]
Settings=File1=C:\Program Files\IBM\Client Access\Shared\CWBX.DLL
Settings=File2=C:\WINNT\system32\COMCAT.DLL
Settings=File3=C:\WINNT\system32\MFC40.DLL
Settings=File4=C:\WINNT\system32\MFC42.DLL
Settings=File5=C:\WINNT\system32\MSVBVM50.DLL
Settings=File6=C:\WINNT\system32\MSVBVM60.DLL
Settings=File7=C:\WINNT\system32\OLEAUT32.DLL
Settings=File8=C:\WINNT\system32\OLEPRO32.DLL
Settings=File9=C:\WINNT\system32\VBSCRIPT.DLL
Settings=File10=C:\Program Files\IBM\Client Access\Emulator\AUTREG.DLL
Settings=File11=C:\WINNT\system32\cwbzzodb.dll
Settings=File12=C:\Program Files\IBM\Client Access\cwbzzidx.dll
Settings=[RegTlbFile32]
Settings=File1=C:\WINNT\system32\STDOLE2.TLB
Settings=
end
item: Execute Program
Pathname=%ProgramFiles%\IBM\Client Access\cwbsreg.exe
Flags=00000010
end
item: Else Statement
end
item: Add Text to INSTALL.LOG
Text=30 - CAE version: unknown
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%WIN%\_delis32.ini
Flags=01000110
end
item: Remark
Text=Installation state unknown?
end
item: Add Text to INSTALL.LOG
Text=31 - Parallel Installation?
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
=== EOF ===
First of all, I slip-streamed the latest service pack into V5R2.
I created an .iss answer file for unattended setup of the application through the original installer. The .iss file provides standard package configuration that goes to our workstations.
On XP stations, set DriverSigning policy to Ignore – otherwise Print driver will fail.
My packaging tool of choice was InstallShield Repackager, the Installation Monitoring option.
=== start capture or monitoring here ===
Run setup.exe –s –sms
After the installation, the registry’s HKLM’s Run entries generated by the application installer need to be removed, with the exception of the service entry cwbsvstr.exe (otherwise macros may fail inside the emulator).
Since one of the Run entries is actually meant to be RunOnce, and is responsible for handling dll registration on first logon (therefore, original setup required administrative logon after the application deployment), we need to kick off dll registration to eliminate admin context logon dependency. Do not mark CAE dll’s for self-registration inside the MSI package – IBM uses its own registration modules; regsvr32.exe won’t handle those. Instead, run cwbsreg.exe. This executable will read the dll registration queue out of the cwbsreg.ini file. Here’s the content of our .ini file (from a Win2k station, not sure if it translates environment variables inside the .ini file):
=== cwbsreg.ini ===
[DllRegisterServer]
File1=C:\Program Files\IBM\Client Access\Shared\CWBX.DLL
File2=C:\WINNT\system32\COMCAT.DLL
File3=C:\WINNT\system32\MFC40.DLL
File4=C:\WINNT\system32\MFC42.DLL
File5=C:\WINNT\system32\MSVBVM50.DLL
File6=C:\WINNT\system32\MSVBVM60.DLL
File7=C:\WINNT\system32\OLEAUT32.DLL
File8=C:\WINNT\system32\OLEPRO32.DLL
File9=C:\WINNT\system32\VBSCRIPT.DLL
File10=C:\Program Files\IBM\Client Access\Emulator\AUTREG.DLL
File11=C:\WINNT\system32\cwbzzodb.dll
File12=C:\Program Files\IBM\Client Access\cwbzzidx.dll
[RegTlbFile32]
File1=C:\WINNT\system32\STDOLE2.TLB
=== EOF ===
Once you run cwbsreg.exe, the .ini file gets removed. Now, CAE does not require a reboot after the installation.
Make cosmetic changes as you please (pre-configuration, shortcuts, restrictions, session definitions).
=== stop capturing or monitoring; process the package ===
Restore your original Driver signing policy setting.
Crack open a beer – you are about to get into the fun part. Compile the MSI file. Do your editing & tweaking.
I am yet to revisit some issues here & there, specifically the implications of having oem#.inf & oem#.pnf files dropped onto a PC, and potential naming conflicts due to that. From what I can see, the .msi works just fine for both installation & uninstallation.
If your .msi file captured .isu’s created during legacy setup process, I can send you two uninstaller .vbs scripts that I wrote to remove CAE in unattended mode (one scans the registry to determine how to remove CAE, another works off the file system, and does a better job for “blown up†or partial installations of CAE). Worst case, you can uninstall CAE through custom actions then.
Also, if you are familiar with the SMS Installer, you might find the following script listing useful for automation of your setup. I designed it for CAE roll-out/ upgrade within our environment, and I only do very basic error handling, but it should give you some guidance.
=== install.ipf ===
Document Type: IPF
item: Global
Version=6.0
Title English=CAE 5.2 Install
Flags=00000100
Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LanguagesList=English
Default Language=2
Copy Default=1
Japanese Font Name=MS Gothic
Japanese Font Size=9
Start Gradient=0 0 255
End Gradient=0 0 0
Windows Flags=00010100000000000010110001010110
Message Font=MS Sans Serif
Font Size=8
Disk Filename=SETUP
Patch Flags=0000000000000101
Patch Threshold=85
Patch Memory=4000
FTP Cluster Size=20
end
item: Set Variable
Variable=CAEVER
end
item: Set Variable
Variable=C
Value=C
end
item: Get Environment Variable
Variable=AU
Environment=ALLUSERSPROFILE
end
item: Get Environment Variable
Variable=PROGRAMFILES
Environment=ProgramFiles
Default=C:\Program Files
end
item: Get Environment Variable
Variable=PC
Environment=COMPUTERNAME
end
item: Get Environment Variable
Variable=USERNAME
Environment=USERNAME
end
item: Check if File/Dir Exists
Pathname=%WIN%\_delis32.ini
Flags=01000110
end
item: Remark
Text=Concurrent Installation?
end
item: Add Text to INSTALL.LOG
Text=32 - Concurrent installation?
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\silent.txt
Flags=01000100
end
item: Remark
Text=Don't need a log of previous install
end
item: Delete File
Pathname=%ProgramFiles%\IBM\Client Access\silent.txt
end
item: End Block
end
item: If/While Statement
Variable=USERNAME
Value=SYSTEM
Flags=00000010
end
item: Execute Program
Pathname=net.exe
Command Line=send %PC% "Installation in progress. Please do not use your PC. It will reboot after the installation is complete."
end
item: End Block
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Driver Signing
New Value=00
Value Name=Policy
Root=2
Data Type=4
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\cwbckver.exe
Flags=01000100
end
item: Get System Information
Variable=CAEVER
Pathname=%ProgramFiles%\IBM\Client Access\cwbckver.exe
Flags=00000101
end
item: If/While Statement
Variable=CAEVER
Value=9.0.0.1
Flags=00001000
end
item: Execute Program
Pathname=%INST%\setup.exe
Command Line=-s -sms -f1%INST%\upgrade.iss
Flags=00000010
end
item: End Block
end
item: Else Statement
end
item: Execute Program
Pathname=%INST%\setup.exe
Command Line=-s -sms
Flags=00000010
end
item: End Block
end
item: Remark
Text=Post-Install cleanup
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value Name=Client Access Check Version
Root=194
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value Name=Client Access Express Welcome
Root=194
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value Name=Client Access Help Update
Root=194
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value Name=CWBSREG
Root=194
end
item: Edit Registry
Total Keys=1
Key=SOFTWARE\IBM\Client Access\CurrentVersion\Selectively_Installable_Components\Client Access Express Base Support\WelcomeWizard
New Value=0
Value Name=Display
Root=2
Data Type=3
end
item: Delete File
Pathname=%AU%\Desktop\iSeries Navigator.lnk
end
item: Remark
Text=Create AS400 Sessions
end
item: Check if File/Dir Exists
Pathname=%C%:\AS400 Sessions
Flags=00000101
end
item: Execute Program
Pathname=%INST%\AS400Icons.exe
Flags=00000010
end
item: Edit INI File
Pathname=%ProgramFiles%\IBM\Client Access\Emulator\Private\AS400.KMP
Settings=[Profile]
Settings=id=KMP
Settings=
Settings=[KEYBOARD]
Settings=KEY1=[host print]
Settings=C-KEY7=[view 1]
Settings=KEY43=[enter]
Settings=S-KEY43=[enter]
Settings=C-KEY43=[dead]
Settings=KEY64=[newline]
Settings=S-KEY64=[newline]
Settings=KEY106=[field exit]
Settings=KEY108=[enter]
Settings=S-KEY108=[enter]
Settings=
end
item: Edit INI File
Pathname=%ProgramFiles%\IBM\Client Access\Emulator\Private\mouse.mmp
Settings=[Profile]
Settings=ID=MMP
Settings=[button]
Settings=d-lbutton=[pass]
Settings=d-rbutton=[pf4]
Settings=
end
item: End Block
end
item: Remark
Text=Error Checking
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\silent.txt
Flags=01000100
end
item: Set Variable
Variable=LOGCHK
end
item: Read/Update Text File
Variable=LOGCHK
Pathname=%ProgramFiles%\IBM\Client Access\silent.txt
end
item: If/While Statement
Variable=LOGCHK
Value=could not install
Flags=00000010
end
item: Add Text to INSTALL.LOG
Text=25 - %LOGCHK%
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: If/While Statement
Variable=LOGCHK
Value=error
Flags=00000010
end
item: Add Text to INSTALL.LOG
Text=15 - %LOGCHK%
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: End Block
end
item: Else Statement
end
item: Add Text to INSTALL.LOG
Text=99 - Silent install log not found
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\cwbinarp.exe
Flags=00000101
end
item: Remark
Text=Uninstaller file is missing
end
item: Add Text to INSTALL.LOG
Text=100 - Uninstaller missing
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%ProgramFiles%\IBM\Client Access\cwbckver.exe
Flags=01000100
end
item: Get System Information
Variable=CAEVER
Pathname=%ProgramFiles%\IBM\Client Access\cwbckver.exe
Flags=00000101
end
item: If/While Statement
Variable=CAEVER
Value=9.0.0.1
Flags=00001000
end
item: Add Text to INSTALL.LOG
Text=29 - CAE version: %CAEVER%
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Edit INI File
Pathname=%PROGRAMFILES%\IBM\Client Access\cwbsreg.ini
Settings=[DllRegisterServer]
Settings=File1=C:\Program Files\IBM\Client Access\Shared\CWBX.DLL
Settings=File2=C:\WINNT\system32\COMCAT.DLL
Settings=File3=C:\WINNT\system32\MFC40.DLL
Settings=File4=C:\WINNT\system32\MFC42.DLL
Settings=File5=C:\WINNT\system32\MSVBVM50.DLL
Settings=File6=C:\WINNT\system32\MSVBVM60.DLL
Settings=File7=C:\WINNT\system32\OLEAUT32.DLL
Settings=File8=C:\WINNT\system32\OLEPRO32.DLL
Settings=File9=C:\WINNT\system32\VBSCRIPT.DLL
Settings=File10=C:\Program Files\IBM\Client Access\Emulator\AUTREG.DLL
Settings=File11=C:\WINNT\system32\cwbzzodb.dll
Settings=File12=C:\Program Files\IBM\Client Access\cwbzzidx.dll
Settings=[RegTlbFile32]
Settings=File1=C:\WINNT\system32\STDOLE2.TLB
Settings=
end
item: Execute Program
Pathname=%ProgramFiles%\IBM\Client Access\cwbsreg.exe
Flags=00000010
end
item: Else Statement
end
item: Add Text to INSTALL.LOG
Text=30 - CAE version: unknown
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%WIN%\_delis32.ini
Flags=01000110
end
item: Remark
Text=Installation state unknown?
end
item: Add Text to INSTALL.LOG
Text=31 - Parallel Installation?
end
item: Exit Installation
Variable=0
Flags=0
end
item: End Block
end
=== EOF ===
Posted by:
sejacru
19 years ago
Hello revizor,
In march i also slipstreamed the service pack in to the installation. I totaly forgot to do this in my installation??? I must be drinking to much [:D].
You wrote:
Do not mark CAE dll’s for self-registration inside the MSI package – IBM uses its own registration modules; regsvr32.exe won’t handle those. Instead, run cwbsreg.exe.
Is this realy nessescary. I did not do this and i think my package works fine. Is there a way to test this?
Thursday is CAE day....hahahahahaahah ......to be continued
In march i also slipstreamed the service pack in to the installation. I totaly forgot to do this in my installation??? I must be drinking to much [:D].
You wrote:
Do not mark CAE dll’s for self-registration inside the MSI package – IBM uses its own registration modules; regsvr32.exe won’t handle those. Instead, run cwbsreg.exe.
Is this realy nessescary. I did not do this and i think my package works fine. Is there a way to test this?
Thursday is CAE day....hahahahahaahah ......to be continued
Posted by:
revizor
19 years ago
Manual registration is not required if you plan to have reboot following the installation prior to post-snapshot. I prefer to package without reboots (packages generally turn out cleaner, plus I get a better idea of what the original setup does)
Anyway, another pitfall with CAE is the following registry key:
HKLM\System\CurrentControlSet\NetworkProvider\Order
If you leave it at "remove on uninstall", you'll end up with computers constantly rebooting. So keep your eyes open, and your job will be safe [;)]
Any plans for v5r3 yet? We are going full production early September, want to see what kind of setup comes with this one...
Anyway, another pitfall with CAE is the following registry key:
HKLM\System\CurrentControlSet\NetworkProvider\Order
If you leave it at "remove on uninstall", you'll end up with computers constantly rebooting. So keep your eyes open, and your job will be safe [;)]
Any plans for v5r3 yet? We are going full production early September, want to see what kind of setup comes with this one...
Posted by:
sejacru
19 years ago
I dont know if we are going to v5r3. Our CAE controller is on holiday and we has to give it a go, but even if we go to v5r3 i hope the software is in a msi.
In march i had the same problem with constantly rebooting...[:D] Luckaly it where 15 test computers so nobody saw this happen..hahahahaha
Are you tweeking your msi or is he finished?
greetings sejacru
In march i had the same problem with constantly rebooting...[:D] Luckaly it where 15 test computers so nobody saw this happen..hahahahaha
Are you tweeking your msi or is he finished?
greetings sejacru
Posted by:
revizor
19 years ago
I'm done with it for now. The package works fine in the alpha environment. I slacked off in a couple of places, but the functionality doesn't seem to be affected.
No plans to push it out, considering v5r3 is one month away from now. I've already been bugging my colleagues about the media for v5r3, so we are trying to collectively track it down. Once I have the CDs, I'll get right on it.
Wish me luck in search for those holy CDs[8D]
No plans to push it out, considering v5r3 is one month away from now. I've already been bugging my colleagues about the media for v5r3, so we are trying to collectively track it down. Once I have the CDs, I'll get right on it.
Wish me luck in search for those holy CDs[8D]
Posted by:
revizor
19 years ago
Posted by:
sejacru
19 years ago
Hello revizor,
here i am again. [:@]
I did exactly the same as you wrote in a few post back.
slipstream the service pack in the original msi, ran cwsreg and still when uninstalling the app my computer hangs. I tried to install the app again through the msi and i still get the error 2783. Nothing added or removed from the exclusion list but i think may be the is my problem? I don't know anymore what to do? Can you help me on the way..
update:
i found out that, when uninstalling the installation, there are some hkcr\clsid keys that will be deleted. Something about msvbvm50.dll, msvbvm60.dll, and vbscript.dll. This explains why i get vbscript errors, but why does wise capture these. Is the standard exclusion list not good enought? What keys do you have in the hkcr? I can compare those results so i have the right keys.
here i am again. [:@]
I did exactly the same as you wrote in a few post back.
slipstream the service pack in the original msi, ran cwsreg and still when uninstalling the app my computer hangs. I tried to install the app again through the msi and i still get the error 2783. Nothing added or removed from the exclusion list but i think may be the is my problem? I don't know anymore what to do? Can you help me on the way..
update:
i found out that, when uninstalling the installation, there are some hkcr\clsid keys that will be deleted. Something about msvbvm50.dll, msvbvm60.dll, and vbscript.dll. This explains why i get vbscript errors, but why does wise capture these. Is the standard exclusion list not good enought? What keys do you have in the hkcr? I can compare those results so i have the right keys.
Posted by:
rpfenninger
18 years ago
Hi Rob
Thanks for that very valuable web link.
Half a year ago I had a package which caused a few machines to bring up the Internal Error 2738 as well. And after reintalling the Windows Scripting Host, it worked.
Now I have the same issue with a couple of machines when I try to install a newer version of the same software (with a repackaged msi including a vbscript).
However, it no longer helps resolving the problem when installing the Windows Scripting Host.
Is there a way to check the Windows Scripting Host any further? Unfortunately there isn't any newer version of WSH I could play with...
Thanks in advance
Roland
Thanks for that very valuable web link.
Half a year ago I had a package which caused a few machines to bring up the Internal Error 2738 as well. And after reintalling the Windows Scripting Host, it worked.
Now I have the same issue with a couple of machines when I try to install a newer version of the same software (with a repackaged msi including a vbscript).
However, it no longer helps resolving the problem when installing the Windows Scripting Host.
Is there a way to check the Windows Scripting Host any further? Unfortunately there isn't any newer version of WSH I could play with...
Thanks in advance
Roland
Posted by:
[CZ]Charlie
18 years ago
Hi everyone, I have this problem:
I'm working on repackaging of IBM Client Access Express V5R3 with update SI20055. I tried procedure as described revizor and repackaging was successful just with one problem: When I finished with repackaging, I made *.bat to try if it is allright and it was. But when I tried to deploy CAExpress via Group Policy (it is the way we are deploying software in our company) happend this: When I try to launch anything (for example : iSeries Navigator) it doesn't launch the aplication but window with Please wait until Windows Installer finish with configuring .... (or something similar). Does anyone have an idea, what i did wrong?
I used Installshield Repackager on WinXP Pro SP2 with snapshot method of repackaging.
thanks a lot for your ideas. [:)]
I'm working on repackaging of IBM Client Access Express V5R3 with update SI20055. I tried procedure as described revizor and repackaging was successful just with one problem: When I finished with repackaging, I made *.bat to try if it is allright and it was. But when I tried to deploy CAExpress via Group Policy (it is the way we are deploying software in our company) happend this: When I try to launch anything (for example : iSeries Navigator) it doesn't launch the aplication but window with Please wait until Windows Installer finish with configuring .... (or something similar). Does anyone have an idea, what i did wrong?
I used Installshield Repackager on WinXP Pro SP2 with snapshot method of repackaging.
thanks a lot for your ideas. [:)]
Posted by:
sejacru
18 years ago
Posted by:
revizor
18 years ago
Charlie,
chances are not all of the components have been properly installed. Eventlog may give you better leads. Or, in your case, push a policy to turn on Windows Installer logging - it can get granular. Also, see which files may be substituted by merge modules - I recall there were at least 4-5 of those.
BTW, sejacru - we reverted to V5R2. Turns out IBM changed functionality of macro pads in V5R3 - they do not resize buttons. In our org it's a big deal, so the whole entire deployment had to be rolled back [:(] I wasted my time for nothing.
chances are not all of the components have been properly installed. Eventlog may give you better leads. Or, in your case, push a policy to turn on Windows Installer logging - it can get granular. Also, see which files may be substituted by merge modules - I recall there were at least 4-5 of those.
BTW, sejacru - we reverted to V5R2. Turns out IBM changed functionality of macro pads in V5R3 - they do not resize buttons. In our org it's a big deal, so the whole entire deployment had to be rolled back [:(] I wasted my time for nothing.
Posted by:
sejacru
18 years ago
Posted by:
[CZ]Charlie
18 years ago
Well, I checked the Eventlog and I found two warnings logged. 1st one told me the component{....}failed. The resource {...} doesn't exist. The 2nd told me the feature '...' failed during request for component {....}. I checked the installer's component table and no one of them is missing. I checked SDK as well and unfortunately I didn't find there anything useful. I'm out of ideas, in trouble too, the deadline when I have to finish this is closing.
Mazbe one more note: When I launch the application and wait until Windows Installer configures the application, after some time it stops on moment, when installer couldn't find the original package.
Mazbe one more note: When I launch the application and wait until Windows Installer configures the application, after some time it stops on moment, when installer couldn't find the original package.
Posted by:
revizor
18 years ago
Well, I checked the Eventlog and I found two warnings logged. 1st one told me the component{....}failed. The resource {...} doesn't exist. The 2nd told me the feature '...' failed during request for component {....}. I checked the installer's component table and no one of them is missing. I checked SDK as well and unfortunately I didn't find there anything useful. I'm out of ideas, in trouble too, the deadline when I have to finish this is closing.
There's your problem. Open your package in ORCA or any .msi table editor of your choice, and search for that feature. Examine component references there and compare those with the state of your target system. You might have deleted (?key?) components out of that feature while cleaning up your package... Is the component in question a file or a registry setting? Any way it can be substituted for a merge module? Are files external to your package, or inside .cab/.msi?
On the issue where it can't find the original package - does it take the .msi file when you point the installer to it? If not, see if you modified the version # on the package (or a product code, for that matter) - you might have to sync your registry settings with the package attributes...
Posted by:
[CZ]Charlie
18 years ago
You might have deleted (?key?) components out of that feature while cleaning up your package...
Well, I did NOT delete anything except unneccessary components and the entries in FeatureComponents table ARE.
Is the component in question a file or a registry setting?
Both. First one is registry entry, second one is file.
Are files external to your package, or inside .cab/.msi?
Well, Repackager created .cab file, but there are also external files (i.e. in ProgramFilesFolder, SystemFolder etc.)
On the issue where it can't find the original package - does it take the .msi file when you point the installer to it?
This problem is solved, you were right, problem was in Product Code.Thanks
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.