wixfigura Posted February 18, 2006 Share Posted February 18, 2006 (edited) How can I make my cleanup.cmd invisible in wpi window and run it always after all programs are installed? Means last step of installation is always the cleanup, without option to check or uncheck it. Anybody some suggestion? maybe change one of the .js or make a new point in config,js? Edited February 18, 2006 by wixfigura Link to comment Share on other sites More sharing options...
Lost Soul Posted February 19, 2006 Share Posted February 19, 2006 How can I make my cleanup.cmd invisible in wpi window and run it always after all programs are installed? Means last step of installation is always the cleanup, without option to check or uncheck it. Anybody some suggestion? maybe change one of the .js or make a new point in config,js?i believe the only way youll ever make your cleanup seem invisable is to use the @ key before all lines of your cleanup script to give it the power of the command but the hidden feel you may be looking forexample @RD /S /Q "%ALLUSERSPROFILE%\Start Menu\Programs\Mozilla Firefox"@Del "%ALLUSERSPROFILE%\Desktop\Mozilla Firefox.lnk"hope that helps Link to comment Share on other sites More sharing options...
lawrenca Posted February 20, 2006 Share Posted February 20, 2006 (edited) wixfigura,You can always add cleanup command to wpi.exe (you would have to modify wpi.au3 found in the tools folder of WPI4.4rc1, then recompile). This script will give you the flexibility of running any commands before or after the launch of wpi.hta. The script already contains a placeholder for reboot, cleanup, resolution changer and syntax for adding new commands.;Cleaning up the desktop.$cleanup = "del /s/q "& chr(34) & "%userprofile%\desktop\*.lnk" & chr(34);Run(@ComSpec & " /c " & "start " & $cleanup,"",@SW_HIDE)Just uncomment/remove the";" in front of Run and change the $cleanup to indicate the file you wish to run.Example:Run(@ScriptDir & "\cleanup.cmd", "", @SW_MAXIMIZE)Where cleanup.cmd would be in the root of where wpi.exe lives and contains all the functions you wish to run for the cleanup. Edited February 20, 2006 by lawrenca Link to comment Share on other sites More sharing options...
wixfigura Posted February 20, 2006 Author Share Posted February 20, 2006 Hiyou havent understood right. I want to include cleanup-script into wpi, but not being visible in the wpi-window. But always in the following runonceex. Now i have it in the wpi.exe. Its just a cosmetical change. Link to comment Share on other sites More sharing options...
Solid as a rock Posted February 21, 2006 Share Posted February 21, 2006 Hiyou havent understood right. I want to include cleanup-script into wpi, but not being visible in the wpi-window. But always in the following runonceex. Now i have it in the wpi.exe. Its just a cosmetical change.I believe lawrenca way isnt visible at all? Please read his post again... Link to comment Share on other sites More sharing options...
Dumpy Dooby Posted February 23, 2006 Share Posted February 23, 2006 I use a program that hides the console window (so it never shows up at all). I don't remember it's original file name, but for me it's something like this:_hide cleanup.cmdPretty simple, actually. And, of course, I have all of my cleanup stuff in cleanup.cmd. Link to comment Share on other sites More sharing options...
mritter Posted February 25, 2006 Share Posted February 25, 2006 Inside WPI.cmd there is a line to run a clean up script. Just remove the REM and rename it to your file. And usecmdow @ /HID@ECHO OFFas the first 2 lines. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now