Jump to content

blinkdt

Member
  • Posts

    582
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by blinkdt

  1. Go to the AutoIt3 directory in Program Files and copy AutoIt3.exe. Place it in your WPI structure. Then, to run a .au3 file, configure the path as such: Path\to\AutoIt3.exe Path\to\script.au3The application will execute the script.
  2. Here's a variant of GTOOOOOH's script culled from the AutoIt forums that I have been using for a long time to run applications from my flash key: $usb = DriveGetDrive("REMOVABLE") If Not @error Then ;MsgBox(4096, "", "Found " & $usb[0] & " drives");‹-- uncomment to verify/identify all available drives For $i = 1 To $usb[0] If DriveGetLabel($usb[$i]) = "COR_8GB" Then Global $MyKey = $usb[$i];‹== set flash key drive letter assignment EndIf Next EndIf The main difference is that instead of searching for a file on the key, the script searches for the key itself . . . by name. I named my key "COR_8GB." The drive letter assignment is the variable $MyKey, which can be used to run apps, like so: RunWait( $MyKey & '\myapps\nero6\install.exe') On a related note, here's a variant that I use to fire up WPI from a flash key named, of all things, "WPI:" $usb = DriveGetDrive("REMOVABLE") If Not @error Then For $i = 1 To $usb[0] If DriveGetLabel($usb[$i]) = "WPI" Then $MyKey = $usb[$i] RegWrite("HKEY_CURRENT_USER\Software\WPI", "ConfigFile", "REG_SZ", $drv & "/WPI/WPIScripts/config.js") RegWrite("HKEY_CURRENT_USER\Software\WPI", "OptionsFile", "REG_SZ", $drv & "/WPI/WPIScripts/useroptions.js") RegWrite("HKEY_CURRENT_USER\Software\WPI", "LogPath", "REG_SZ", $drv & "/WPI/INSTALL_LOG.txt") Run("mshta " & $MyKey & "\WPI\WPI.hta """) EndIf Next EndIfWith a custom autorun.inf file, I can just plug in the drive, click OK, and run WPI. Works well.
  3. That should work. Windows normally balks at running two or more installation processes at the same time and typical .exe files are packaged installers, in my experience. But yours is not, so I don't see a conflict, a la the mshta process and an msiexec process running at the same time. Try it and let us know how it goes.
  4. WPI comes complete with a user manual and, of course, you can always spend time reading this forum for tips and tricks. I personally believe first-time posters who ask questions like this should be flogged publicly for the common good.
  5. @SilverFox I'm having trouble with this procedure, thought maybe my first download was corrupt but it appears the install package may be the issue. I'm receiving an "access is denied" error when trying to open the 'shared' directory included in the package. Thanks for posting this, I would love to get it working.
  6. Dude, you joined MSFN in June, you have 65 posts (all questions), you use both HFSLIP and nLite on your source.... Slow down. Consult the Unattended guide. Take it step-by-step. Heaven only knows where things may have messed up. That's my two cents.
  7. I think you missed this: [Unattended] Repartition=No
  8. Maybe AutoIt's @SW_HIDE macro could do the job. Something like: Run( @ScriptDir & '\sleep.exe', , @SW_HIDE ) Compile it in the same directory as 'sleep.exe' and call it as 'sleepy.exe' or something. I'm never averse to doing it the hard way, and it might work.
  9. OK, that's because I messed up (recall my smarta$$ "user error" comment). Looks like the config.xml file that needs to be edited is located in the WebDesigner.WW directory. I made a copy of the original and then dropped mine in, overwriting the original. I am no longer pestered for the product key but still have a dialogue or two to get past. Right now I'm getting prompted to install or customize the install. I'm still poking around. I thought my previous method worked, but in retrospect I was probably just installing/uninstalling on a single machine and leaving behind data in the registry. I need to get this working on a clean install soon myself, will post back with any results. The ONLY information I could find re this topic was HERE. Looks like the config.xml file might need a reference to an .msi /q combination to install silent? Edit: Looks like that's the config.xml file to be working with: I can enter the product key, user and company name, bypass the EULA, etc., but I keep getting stopped by the "Install Now/Customize" dialogue. Guess I could AutoIt . . . but it would be nice to .xml the whole show. Edit/Edit: I punted and went with AutoIt (too easy). I edited the config.xml script found in the WebDesigner.WW directory as per above and then ran the following script from the root directory: Run( @ScriptDir & "\setup.exe") WinWaitActive("Microsoft Expression Web", "" ) Sleep(2000) Send('!i') Sleep(5000) ProcessWaitClose('setup.exe') Here's my script, place it next to setup and run it: COMPILED SCRIPT If you encounter issues, use Task Manager to kill the "install.exe" process and PM me with any gripes or suggestions. The script runs setup without any switches (it's looking to the config.xml file in WebDesigner.WW by default, so please ensure it has been edited as per above) then waits for the Install/Customize dialogue. When the dialogue appears the Install button is clicked after a two second delay. The script next pauses for five seconds to ensure that setup has begun, then waits for setup to finish before exiting. There are four (4) Office 2007 critical updates related to the Expression Web install as of this writing that get installed along the way by extracting the .msp file from the update and placing each in the "updates" directory (KB934391, KB934062, KB932080, AND KB934393). You need to implement that. Works just fine now, if you don't mind the default installation.
  10. Yeah, or user error, which is usually the case, right? Perhaps you are making this more complicated than need be. Just create a config.xml file and put it in the Updates directory. Then run setup, no switches required. All too easy. My config.xml file for the Academic Version of Expression Web: <Configuration Product="WebDesigner"> <Display Level="Basic" CompletionNotice="No" SuppressModal="no" AcceptEula="yes" /> <PIDKEY Value="AAAAAAAA55AAAA5AA5A5AAAA" /> <Setting Id="Reboot" Value="ReallySuppress" /> </Configuration>The PIDKEY value is your product key without dashes.
  11. The reboot issue is doggin' me, looking forward to the new release and thanks!
  12. @beeker Hey, thanks for that. This one has plagued me for a long time. I'm going to give Sigint's Office Integrator a whirl, but it's nice to have the registry settings information you provided as a starting point in case I want to do this manually down the road.
  13. You could script the install to determine whether the application has already been installed and, if so, exit. My preferred scripting tool is AutoIt. I would conditionally run a few statements using "If - ElseIf - EndIf" to do the job, searching for an installed file unique to each app. If the file exists, exit the install and maybe throw a message box at the user reminding them that they are a picklehead. You can compile the AutoIt script so that it behaves like a switchless installer. And so much more . . .
  14. THIS should help guide you (still scratching my head over that "lib" reference).
  15. For number one, how about Pyron's "Drivers from CD" method as detailed HERE. I rely on it and assume it will work from DVD as well.
  16. @CEoCEo One more registry tweak worth considering if you are downloading the software directly from the Nero Web site: that silly "50 free mp3" offer that appears in StartSmart Favorites. ; Remove free mp3 offer from favorites RegWrite ( "HKCU\SOFTWARE\Ahead\Nero StartSmart\Settings", "Favorites2", "REG_SZ", "DataCD,DataDVD,DataHDDVD,DataBluray,DataDisc,CDAudio,VCD,DVDVideo,CopyCD,CopyDVD,CopyBluray,Copy HDDVD,CopyDisc,VCDSlideshow,OpenProjects" ) RegWrite ( "HKCU\SOFTWARE\Ahead\Nero StartSmart\Settings", "OEMFavorites", "REG_SZ", "OEMAction_e_trial_oem____Free_MP__offer_click_here" ) Now if I could find a way to remove it permanently from the Audio selections . . .
  17. Wrong on all counts, my friend. No, actually it is a key tool that should be in the arsenal of every self-respecting unattender, in my opinion. It's a bit daunting at first, I will agree, but a person of, say, average intelligence, can learn to use it correctly. Perhaps you should visit the AutoIt forum and review some of the "bad design decisions" being implemented over there. Careful: that forum leaves newbie heads swooning. Not sure what you mean by the second part of your rant, but AutoIt has become my "go-to" scripting solution in every instance. And it NEVER fails me.Real bad form when a user knocks a solution just because THEY can't implement it correctly. There are some pretty serious AutoIt users on this forum, and with good reason.
  18. gone (Second Edit: Sorry, meant to say deleted. Thought I had a comment for you but then re-read your original post and realized I did not have a solution for you.)
  19. That's how I used to do it as well, but with later versions of WPI there is no need. You can create Custom entries using the "configuration" and "options" features now present in WPI thanks to the hard work of the authors. And don't forget to read that pesky user manual.
  20. Old post to be sure, but I recall putting the .cmd into the WinRAR SFX (.exe format) because it would not run from Startup. Can't recall now . . . sounds like the batch file is all that is needed, thanks.
  21. If your .exe is a program requiring switches, you might want to use a batch file (or better, a compiled script in .exe format itself) that kicks off from the All Users Startup directory to install it. See THIS THREAD for more information.
  22. Try merging this registry setting following the install: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\DesktopSearch] "DB"=dword:00000001 You can also check MSDN for the entire WDS administrative deployment discussion. You have lots of options re custom configuration via Group Policy. Edit: Works for me following a reboot. The Deskbar is gone with no option to enable it from the taskbar. You can get the entire WDS administrative guide HERE.
  23. There is NOTHING in the unattended installation world that AutoIt cannot accomplish. You just need a willingness to learn.
  24. OK, this is what I'm currently using. The script installs AVG Free, disables the daily scan feature, updates the program completely, and selects "Internet" as the update source. Balloon tip and custom icon are optional, modify to your liking: #include <AU3includes\Misc.au3> #include <AU3includes\Constants.au3> AutoItSetOption("WinTitleMatchMode", 4) ;-------------------------------------- AdlibEnable ("KillUpdate") Opt('TrayMenuMode',1) TraySetToolTip(' Unattended installation is active . . . ') TraySetIcon( @ScriptDir & '\icon.ico') TraySetState (4) ;********************************************************** TrayTip('Unattended Installation', 'Installing AVG Free 7.5.467 . . . please wait . . .', 0, 1) ;-----install AVG Free RunWait(@ScriptDir & '\avg75free_467a1008.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED') FileDelete(@DesktopCommonDir & '\AVG*.lnk') FileCreateShortcut(@ProgramFilesDir & '\Grisoft\AVG7\avgw.exe', @ProgramsCommonDir & '\Accessories\System Tools\AVG Test Center.lnk') DirRemove(@ProgramsCommonDir & '\AVG 7.5', 1) Sleep(2000) ;-----disable daily scans Run( @ProgramFilesDir & '\Grisoft\AVG7\avgw.exe') WinWaitActive('AVG Free Edition - Test Center', '') ControlClick('AVG Free Edition - Test Center', '', 'Button4') Send("{UP}") Send("!e") WinWaitActive('Schedule Daily Test', '') Send("!p") ControlClick('Schedule Daily Test', '', 'Button9') WinClose('AVG Free Edition - Test Center') ;-----update AVG Free Update() While 1 If WinExists('AVG Free Edition Update Selection', 'Please select update') Then ControlClick('AVG Free Edition Update Selection', 'Please select update', 'Button2') ElseIf WinExists ('AVG Free Edition', 'Update was successfully finished') Then ControlClick('AVG Free Edition', 'Update was successfully finished', 'Button1') Update() Else If WinExists('Update AVG', 'An error occurred when trying to connect') Then ControlClick('Update AVG', 'An error occurred when trying to connect', 'Button1') ElseIf WinExists('AVG Update', 'Your AVG program already has the latest updates installed') Then ControlClick('AVG Update', 'Your AVG program already has the latest updates installed', 'Button1') Sleep(3000) ;-----select 'Internet' as update source and do not ask again Run( @ProgramFilesDir & '\Grisoft\AVG7\avgcc.exe') WinWaitActive('AVG Free Edition - Control Center', '') ControlClick ('AVG Free Edition - Control Center','','Button3') WinWaitActive('Update', '') ControlClick ('Update','','Button4') ControlClick ('Update','','Button1') WinWaitActive('AVG Update', 'Your AVG program already has the latest updates installed') ControlClick('AVG Update', 'Your AVG program already has the latest updates installed', 'Button1') Sleep(500) WinClose('AVG Free Edition - Control Center','') TrayTip("clear tip","",0) For $i = 5 To 1 Step -1 TrayTip('Unattended Installation', "AVG installation will finish in " & $i & " seconds...", 0, 1) Sleep(1000) AdlibDisable() Next TrayTip("clear tip","",0) TraySetState (8) Exit EndIf EndIf Sleep(40) WEnd Func Update() $var = Ping('guru.grisoft.com') If $var Then Run(@Programfilesdir & '\Grisoft\AVG7\avginet.exe') Else TrayTip("clear tip","",0) For $i = 5 To 1 Step -1 TrayTip('Unattended Installation', "AVG installation will finish in " & $i & " seconds...", 0, 1) Sleep(1000) AdlibDisable() Next TrayTip("clear tip","",0) TraySetState (8) Exit EndIf EndFunc ;-------------------------------------- Func KillUpdate() If ProcessExists("wuauclt.exe") Then Run("net stop wuauserv", "", @SW_HIDE) EndIf EndFunc
  25. Not in the manner that you desire. The cat[pn]=['Your Entry'] is probably formatted using CSS. You can, however, change the individual entries found in prog[pn]=['Your Entry'], as an example:prog[pn]=['<font color=#FF0000"><b>.Net Framework 2.0</b></font&gt] --> 'Your Entry' is now red and bolded And that is about as good as it is going to get (and that's pretty darned good) short of some very fancy scripting, I suspect. This type of in-line styling overrides the style sheet. Not sure how you would accomplish this for individual category headers, which appear to be generated as a group.
×
×
  • Create New...