Jump to content

wwsmith

Member
  • Posts

    4
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

About wwsmith

Contact Methods

  • Website URL
    http://

wwsmith's Achievements

0

Reputation

  1. You are right - the call comes from installer.js - my mistake!
  2. I've found two functional problems in WPI 6.5.1 1) Setting the 'RestartComputer' flag in 'useroption.js' initiates a computer reboot after installation. If the installation process contains a %reboot% command the closing reboot is not performed!!! 2) I have a programm XYZ that requires the installation of two tools DAO351 and MAPX5. The tools should be greyed when they already have been installed. The programm XYZ should be not selectable when one of the tools is not installed or checked. Here my 'config.js' pn=1 prog[pn]=['DAO 3.51']; ordr[pn]=[20]; desc[pn]=['MS Data Access Objects 3.51 SP3']; uid[pn]=['DAO351']; dflt[pn]=['yes']; cat[pn]=['00 - System']; gcond[pn]=['FileExists(\'C:\\Programme\\Microsoft DAO\\Data Access Objects 3.51\\DBTest.exe\')']; cmd1[pn]=['%wpipath%\\00_DAO\\INST.cmd']; pn++; prog[pn]=['MapX 5']; ordr[pn]=[40]; desc[pn]=['Version 5']; uid[pn]=['MAPX5']; dflt[pn]=['yes']; cat[pn]=['00 - System']; gcond[pn]=['FileExists(\'C:\\Programme\\MapInfo\\MapX 5.0\\MAPX50.DLL\')']; cmd1[pn]=['%wpipath%\\00_MX5\\INST.cmd']; pn++; prog[pn]=['XYZ']; ordr[pn]=[170]; desc[pn]=['Version 2.1.0.3<br>!!! DAO + MapX !!!']; uid[pn]=['PLACELIRA']; dflt[pn]=['yes']; cat[pn]=['50 - XYZ']; deps[pn]=['DAO351','MAPX5']; gcond[pn]=['FileExists(\'D:\\Win32App\\PlaceLira\\PlaceLIRA.exe\')']; cmd1[pn]=['%wpipath%\\50_PL\\INST.cmd %wpipath%\\']; pn++; The problem comes up when only one tool is installed and the other one has to been installed: WPI does analyze all items in the line 'deps[pn]=['DAO351','MAPX5'];' in 'config.js' correctly - WPI starts up - everything is ok. (see pic 1) - if the user deselects the DAO tool the programm XYZ is greyed - ok. (see pic 2) - if the user now selects the DAO tool again the programm checkbox XYZ stays greyed - error - should be selectable (see pic 3) I also found: if the line 'deps[pn]=['DAO351'];' in 'config.js' only contains one dependency, then everything works fine. Could you help me???
  3. Hi, I think that's just the problem: the flag 'LogInstallation=false' from 'useroptions.js' prevents the setting of the reg key entry - look in 'installer_log.js' - if (LogInstallation) ... . Therefore I put the code add in WPI.hta to secure that the entry is written ever.
  4. It really tooks a long way to locate this bug in VMware! E.g.: the 'undefined' error comes up if you have the 'LogInstallation' flag in 'useroptions.js' disabled and choose only one menu entry containing the %reboot% command: config.js ... pn=1; prog[pn]=['APP 1 - Reboot']; ordr[pn]=[101]; desc[pn]=['Test APP 1']; uid[pn]=['APP1']; dflt[pn]=['yes']; cat[pn]=['System']; forc[pn]=['no']; cmd1[pn]=['"%wpipath%\\Install\\APP_1.cmd" %wpipath%\\']; cmd2[pn]=['%reboot% 10']; pn++; prog[pn]=['APP 2']; ordr[pn]=[102]; desc[pn]=['Test APP 2']; uid[pn]=['APP2']; dflt[pn]=['yes']; cat[pn]=['System']; forc[pn]=['no']; cmd1[pn]=['"%wpipath%\\Install\\APP_2.cmd" %wpipath%\\']; pn++; ... The machine reboots and then 'Installer.hta' throws an 'undefined' error and terminates: Installer.hta ... // Check for ResumeInstall registry entries try { CurrentInstall=WshShell.regRead("HKEY_CURRENT_USER\\Software\\WPI\\CurrentInstall"); LastExec=WshShell.regRead("HKEY_CURRENT_USER\\Software\\WPI\\LastExec"); LastTopLine=WshShell.regRead("HKEY_CURRENT_USER\\Software\\WPI\\LastTopLine"); Language=WshShell.regRead("HKEY_CURRENT_USER\\Software\\WPI\\Language"); // ===> LogPath[0]=WshShell.regRead("HKEY_CURRENT_USER\\Software\\WPI\\LogPath"); // ===> this line throws 'undefined' if the REG entry does not exist !!! // ===> then WPI exits numCommands=WshShell.regRead("HKEY_CURRENT_USER\\Software\\WPI\\numCommands"); curCommand=WshShell.regRead("HKEY_CURRENT_USER\\Software\\WPI\\curCommand"); } catch (ex) { alert(getText(UnableToResumeInstall)); try { WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\ResumeInstall",0,"REG_DWORD"); } catch (ex) {;} ExitWPI(); } ... The solutions is quite simple: writing the REG 'LogPath' entry by default: WPI.hta ... <script type="text/javascript"> try { WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\Theme",Theme,"REG_SZ"); WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\Language",Language,"REG_SZ"); WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\PlayAudioInInstaller",PlayAudioInInstaller,"REG_SZ"); WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\AudioVolume",Volume,"REG_SZ"); // ===> insert the following line // ===> to fix WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\LogPath",LogPath,"REG_SZ"); // ===> } catch (ex) {;} </script> ... Also the 'undefinied' message - when installing Office2003 - is gone... That's it - I hope you like it
×
×
  • Create New...