Jump to content

AlBundy33

Member
  • Posts

    216
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Everything posted by AlBundy33

  1. 1. I want to define some command-Types: e.g. Cleanup, Registration, Settings 2. each command-type should get a configurable default-value (enabled/disabled) 3. I want to be able to set a command type on each command 4. for each command-type a checkbox should be displayed in the main-WPI-window to enabled/disable them Example: I want to define the types Cleanup, Registration and Settings, where cleanup is disabled by default. No I set the types on each command I want: "!CD!\Firefox Setup 3.5.3.exe" -ms -ira [Settings] XCOPY /Y "!CD!\user.js" "%PROGRAMFILES%\Mozilla Firefox\defaults\profile\" [Cleanup] @"%ROOT%\Tools\eMove.cmd" "Mozilla Firefox" "Internet" [Cleanup] @DEL /Q "%ALLUSERSPROFILE%\Desktop\Mozilla Firefox.lnk" [Cleanup] @DEL /Q "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Mozilla Firefox.lnk" msiexec /i "!CD!\ExpressoSetup3.msi" ADDLOCAL=ALL REBOOT=ReallySuppress /passive /norestart /qb [Registration] "%ROOT%\Tools\REG.EXE" IMPORT "!CD!\register.reg" [Cleanup] @"%ROOT%\Tools\eMove.cmd" "Expresso" "Development" Now can enable or disable each command-type on the main-WPI screen and if I press install all commands with checked command-types or without declared command-types will be executed. Al
  2. I would like to see user defined command-types (like configurations). With a checkbox for each type on the left side of WPI. e.g. I want to declare some commands as cleanup-commands and want to enable/disable them before I start the install-process. Al
  3. Of course echo %USERNAME% shows my username and I tried it on my running system. Al
  4. It's also a problem in main-WPI-window (screenshot bottom right).
  5. In installer window "%USERNAME%" is displayed instead of the value of the variable. Al
  6. It seems that %CDROM% is not set. Try to replace %CDROM% with %ROOT% - only to see if this shows another path: 12 September 2009 17:03:21 - cmd1 *** Fail *** (returned code undefined): "\DVD-Apps\eMulePlus-1.2e.Installer.exe /VERYSILENT /SP- /S" And post the result. Al
  7. 1. You can do this also with reg.exe - query the interfaces and set the values. 2. why not simple run wpi after first logon? 3. maybe the dll are not registered at this time - try to reigster it manually with regsvr32 /s vbscript.dll (maybe you have pass the full qualified name to the dll) Al
  8. On my unattended-XP-CD I'm using the attached structure to start my scripts and WPI. --> With this there is no need to copy files on hdd - you can run your scripts directly from CD - don't know if it also works on Vista. Al _OEM_.zip
  9. AFAIK setupcomplete.cmd works only on Vista and the file is called after the first logon. To collect some informations you can add the following lines to you script: ECHO %DATE%, %TIME% >"%SystemDrive%\test.log" SET >>"%SystemDrive%\test.log" Al
  10. I tried it but after WPIcmdArgs=argLine.match(regexpSearch); WPIcmdArgs is null Al
  11. Yepp - argument check=default definitely does not work. Al
  12. What about this: instead of parent[pn]=['UID_OF_PARENT'] user registerChildren('UID_OF_PARENT', 'UID_OF_CHILD') So after loading config.js you already know the structure. While you create the categories you can check if there are any children which have to be rendered under the current entry. After the child is rendered you can mark it as rendered and ignore it next time. Al
  13. Sounds interessting - any facts about that? But first back to my indention-problem. :-) Why not create a property parent[pn]=['UID_OF_PARENT'] Now this entry should be displayed under the parent (with an indention of course). --> Installation can be done on install-order - group should only be a ui-thing. It would be also great if also sub-items of sub-items of sub-items could be defined. Al
  14. First problem was due to invalid UIDs - now I only use A-Z, 0-9 and _ and it works. Now: Is there a way to indent applications which are depending on other apps? Thanks Al
  15. I have an application X which depends on application Y - but the checkbox for application X is always disabled?!? Does anybody see the problem? Is it also possible to indent the entries? e.g. [ ] app1 [ ] app1.1 Thanks Al Here are my config files: // WPI Config 7.7.0+ // // User defined options // // Configurations tab Configurations=['']; ShowMultiDefault=false; CheckOnLoad='none'; SortOrder=['PreInstall','Kategorie 1','Kategorie 2','PostInstall']; pn=1; prog[pn]=['Anwendung 1.2']; uid[pn]=['Kategorie 1#Anwendung 1.2']; desc[pn]=['<div style="padding:5px;"><b style="white-space:nowrap;">Freeware/OpenSource</b><br/></div>']; ordr[pn]=[4]; dflt[pn]=['no']; bit64[pn]=['no']; deps[pn]=['']; forc[pn]=['no']; cat[pn]=['Kategorie 1']; picf[pn]=['InstallPackage.png']; picw[pn]=['128']; pich[pn]=['128']; textl[pn]=['Left']; cmds[pn]=['"%ROOT%\\Anwendungen\\Kategorie 1\\Anwendung 1.2\\test.cmd"','""%ROOT%\\Tools\\parsecommands.cmd" "%ROOT%\\Anwendungen\\Kategorie 1\\Anwendung 1.2\\unattended_151.inf""']; pn++; prog[pn]=['Anwendung 1.2.1']; uid[pn]=['Kategorie 1#Anwendung 1.2#Anwendung 1.2.1']; desc[pn]=['<div style="padding:5px;"><b style="white-space:nowrap;">Freeware/OpenSource</b><br/></div>']; ordr[pn]=[5]; dflt[pn]=['no']; bit64[pn]=['no']; deps[pn]=['Kategorie 1#Anwendung 1.2']; forc[pn]=['no']; cat[pn]=['Kategorie 1']; picf[pn]=['InstallPackage.png']; picw[pn]=['128']; pich[pn]=['128']; textl[pn]=['Left']; cmds[pn]=['"%ROOT%\\Anwendungen\\Kategorie 1\\Anwendung 1.2\\Anwendung 1.2.1\\test.cmd"','""%ROOT%\\Tools\\parsecommands.cmd" "%ROOT%\\Anwendungen\\Kategorie 1\\Anwendung 1.2\\Anwendung 1.2.1\\unattended_151.inf""']; pn++; // WPI Options 5.0+ // // User defined options // // Window tab Resolution=0; MainWindowWidth=800; MainWindowHeight=600; MainWindowX=-1; MainWindowY=-1; InstallerWindowX=25; InstallerWindowY=25; // Style tab Theme='Server'; BgPicture=''; // General tab NumCols=3; // --- Timer=false; Seconds=300; StartBeepAtSecs=10; // --- Language='de'; // --- ShowExtraButtons=true; DoNotShowIfCD=true; USSFSilentMode=false; VerifyInstallHDD=false; AllowCheckForInternet=false; LoadDesktopBeforeInstall=false; ReOpenAfterInstall=false; DisableCatCheckBoxes=false; SortWithinCats=true; DisableOnDepsNotMet=true; AlwaysUseScrollBar=false; DontSplitCats=true; InstallByCategory=false; ReallyForce=false; DisableIfDoGray=false; InstallFonts=false; ShowCommandInInstaller=true; ShowInstallerImages=true; AlwaysShowOutputWindow=false; DoDebuggerCheck=false; // --- DefaultInstallPath='default'; CustomInstallPath=['']; // --- ShowToolTips=true; UseTransitions=false; IndentText=true; // Audio tab PlayAudioInInstaller=false; InstallAudio=['']; Volume=50; Shuffle=false; CopyAudioFolder=false; CopyAudioPath=['%systemdrive%\\WPI_Audio']; DeleteAudioFolder=false; // Tools tab MonitorResolution=0; MonitorDepth=0; MonitorRefresh=0; // --- ExecuteBeforeEnabled=true; ExecuteBeforebit64=false; ExecuteBefore=['"%ROOT%\\Tools\\preWPI.cmd"']; ExecuteAfterEnabled=true; ExecuteAfterbit64=false; ExecuteAfter=['"%ROOT%\\Tools\\postWPI.cmd"']; // --- RestartComputer=false; RestartType=0; RestartSeconds=30; DoNotLoadDesktop=false; // --- LogInstallation=true; LogPath=['%systemdrive%\\WPI_Install.log']; TimeStampLogFile=false; // Sounds tab SndWPIStartCB=false; SndWPIStart=['"%wpipath%\\Audio\\SoundsScheme\\Alert.wav"']; SndInstallStartCB=false; SndInstallStart=['"%wpipath%\\Audio\\SoundsScheme\\AtBeginning.wav"']; SndInstallSuccessCB=false; SndInstallSuccess=['"%wpipath%\\Audio\\SoundsScheme\\Yes.wav"']; SndInstallFailCB=false; SndInstallFail=['"%wpipath%\\Audio\\SoundsScheme\\No.wav"']; SndInstallFinishCB=false; SndInstallFinish=['"%wpipath%\\Audio\\SoundsScheme\\AtEnd.wav"']; SndWPIExitCB=false; SndWPIExit=['"%wpipath%\\Audio\\SoundsScheme\\Exit.wav"'];
  16. {JSCRIPT}=setEnvVar(Variable, Value, GlobalFlag) would also be very nice. GlobalFlag = true: set variable in system-env GlobalFlag = false: set variable only for current process (sub-processes should also can use them). e.g.: {JSCRIPT}=setEnvVar("LOGFILE", "%SystemDrive%\install.log", false) %ROOT%\apps\myapp\install.cmd Now install.cmd can use %LOGFILE%. Because this variable is only used during install-process it should not be set in system-env - but it should be accessible for the next app without to redeclare it. Al
  17. I think you cmd-file looks like this: setup.exe /your /args Right? The problem is, that the working-directory is "%WINDIR%\system32" - so your exe-files can not be found. You can make all your path fully qualified by using %~dp0 (path to the script-directory). So you can modify your script like this: "%~dp0setup.exe" /your /args or this PUSHD "%~dp0" setup.exe /your /args POPD Al
  18. I want to use WPI-Environment-Args in batch-files (e.g. %ROOT%). Is it possible to set the environment before a command is executed? Thanks Al
  19. Some configurations are now in config.js and not in useroptions.js // Configurations tab Configurations=['']; ShowMultiDefault=false; CheckOnLoad='none'; // --- SortOrder=['PreInstall','Allgemein','Brenner','Development','Handy-Tools','Hardware','Internet','Microsoft','Multimedia','Office','Radio & TV','Sicherheit','Spiele','Toolz','VAIO','PostInstall']; Is this a bug? --> I create these files automatically - so I want to put the config in the right files. ;-) Al
  20. Why do you not use objects for configuration instead of multiple arrays? Maybe it could speed up WPI if you switch from pn=0; prog[pn]='App1'; desc[pn]='descr1' pn++; to something like this: function Application(aName, aDescr) { this.name = aName; this.descr = aDescr; } Application.prototype.setName = function(aName) { this.name = aName; } Application.prototype.getName = function() { return this.name; } Application.prototype.setDescr = function(aDescr) { this.descr = aDescr; } Application.prototype.getDescr = function() { return this.descr; } var app = new Application("Microsoft Windows Media Player 12", "a media player"); With this you hold one array of all applications an can quickly access the properties of the current application. --> I hope this could be faster - but I'm not sure. Al
  21. Of course this ends with an error because of the store js-file. e.g. if you try a description like this: This is my cool 'description'. This could end up in something like this desc[pn]='This is my cool 'description'.'; As you can (hopfully) see, this can cause this error. If you want cool descriptions you can use html-tags. e.g. This is my<br/>cool 'description'. I use a table and some css to create multi-line descriptions. e.g. <div style="padding:5px;"><b style="white-space:nowrap;">Freeware/OpenSource</b><br/><table style="color:black;font-family:\'Courier New\', monospace;font-size:1em;border:none;"><tr><th align="left" nowrap><u>Beschreibung</u></th></tr><tr><td style="white-space:nowrap;">Benchmark-Programm um die Leistungsfähigkeit</td></tr><tr><td style="white-space:nowrap;">der Grafikkarte zu testen.</td></tr><tr><td style="white-space:nowrap;">Homepage: <a href="http://www.futuremark.com/" target="_blank">http://www.futuremark.com/</a></td></tr></table></div> Al
  22. The problem was that I uses javaw like the oracle-installer - with java it should work. So try this: 1. replace each %TEMP%\Oracle_Client in your response file with .\ 2. use this config.txt ;!@Install@!UTF-8! RunProgram="\"%%T\\Oracle_Client\\run_setup.cmd\" -silent -responseFile \"%%T\\Oracle_Client\\install\\win32\\clientcustom.rsp\"" GUIMode="2" RunProgram="hidcon:cmd /c" ;!@InstallEnd@! 3. use this run_setup.cmd @ECHO OFF SET BASE=%~dp0 SET OUI_SRC=%BASE%\stage\Components\oracle.swd.oui\2.2.0.12.0\1\DataFiles\Expanded SET JRE_SRC=%BASE%\stage\Components\oracle.swd.jre\1.3.1.1.0a\1\DataFiles\Expanded SET IMG_SRC=%BASE%\install\images SET TIMESTAMP=%DATE%_%TIME% SET TIMESTAMP=%TIMESTAMP: =_% SET TIMESTAMP=%TIMESTAMP:.=_% SET TIMESTAMP=%TIMESTAMP::=_% SET TIMESTAMP=%TIMESTAMP:,=_% SET TEMP_DIR=%TEMP%\oracle_install_%TIMESTAMP% :: enable this to log into console SET OUTPUT=CON :: enable this to log into a logfile REM SET OUTPUT="%BASE%\%~n0.log" PUSHD "%BASE%" CALL :INSTALL %* >%OUTPUT% POPD GOTO :EOF :INSTALL IF NOT EXIST "%OUI_SRC%" ( ECHO directory not found "%OUI_SRC%"! GOTO :EOF ) IF NOT EXIST "%JRE_SRC%" ( ECHO directory not found "%JRE_SRC%"! GOTO :EOF ) IF NOT EXIST "%IMG_SRC%" ( ECHO directory not found "%IMG_SRC%"! GOTO :EOF ) ECHO initialize "%TEMP_DIR%"... MD "%TEMP_DIR%" XCOPY /Q /S "%OUI_SRC%" "%TEMP_DIR%\oui\" XCOPY /Q /S "%JRE_SRC%" "%TEMP_DIR%\jre\" XCOPY /Q /S "%IMG_SRC%" "%TEMP_DIR%\images\" SET CMD="%TEMP_DIR%\jre\bin\java.exe" -Doracle.installer.library_loc="%TEMP_DIR%\oui\bin\win32" -Doracle.installer.startup_location="%BASE%\install" -Doracle.installer.nlsEnabled="TRUE" -mx48m -cp "%TEMP_DIR%;%TEMP_DIR%\oui\lib\OraInstaller.jar;%TEMP_DIR%\jre\lib\rt.jar;%TEMP_DIR%\jre\lib\i18n.jar" oracle.sysman.oii.oiic.OiicInstaller -scratchPath "%TEMP_DIR%" -sourceLoc "%BASE%\install\../stage/products.jar" -sourceType network %* ECHO running %CMD% CALL %CMD% ECHO cleanup "%TEMP_DIR%"... RD /S /Q "%TEMP_DIR%" GOTO :EOF I think it should work now. :-) --> I tried to install the client from command-prompt with run_setup.cmd -silent -responseFile "%CD%\test.rsp" and it worked (script waits until setup is done and removes the %TEMP_DIR% - only one dll could not deleted). Al
  23. This looks like that the directory is cleanup before the installer is done. :-/ Can you try this: I think the script is in the oracle-directory. What happens if you open a command prompt and run the script manually (maybe you can start it also from explorer) - does the script wait until the setup is done? If it does you can try this: ;!@Install@!UTF-8! RunProgram="START \"\" /WAIT \"%%T\\Oracle_Client\\run_setup.cmd\" -silent -responseFile \"%%T\\Oracle_Client\\install\\win32\\clientcustom.rsp\"" GUIMode="2" RunProgram="hidcon:cmd /c" ;!@InstallEnd@! or you can run simply the script direct from WPI (simply replace your sfx with the content of you oracle_client-dir and replace the command with the command from config.txt with replaced %%T\Oracle_client) Al
×
×
  • Create New...