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'
CODE
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++;
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)
Click to view attachment
- if the user deselects the DAO tool the programm XYZ is greyed - ok. (see pic 2)
Click to view attachment
- if the user now selects the DAO tool again the programm checkbox XYZ stays greyed - error - should be selectable (see pic 3)
Click to view attachment
I also found: if the line 'deps[pn]=['DAO351'];' in 'config.js' only contains one dependency, then everything works fine.
Could you help me???