Jump to content

durex

Member
  • Posts

    952
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by durex

  1. or you could create a vbscript to walk through the install as well... and for future reference, you want to make sure you post anything application related under the 'Application Installs' forum section. Good Luck!
  2. Can you please post the exact syntax of that line of code youre using, because Ive tested that and it should work.... ::EDIT:: Crap.. I forgot the leading slash in my previous post.... thats why it wasnt working.. WshShell.Run (chr(34) & PROG & "\Nortel Networks\Extranet.exe" & chr(34) & " -auth 0 -user LOGIN -pwd PASSWORD -serverip 000.000.000.000 -s") There... now that should def work..... sorry!
  3. Yea... I just did it that way cause I dont really like using $OEM$, plus Im the only person that uses my pc... so this method works for me. To each his own, right? and thx again for this much needed streamlined method....
  4. Thx.. just wanted to make sure I wasnt missing anything.
  5. Try this.. I think what it needs to read is "%PROGRAMFILES%\Nortel Networks\Extranet.exe" -auth 0 -user LOGIN -pwd PASSWORD -serverip 000.000.000.000 -s WshShell.Run (chr(34) & PROG & "Nortel Networks\Extranet.exe" & chr(34) & " -auth 0 -user LOGIN -pwd PASSWORD -serverip 000.000.000.000 -s") Thats should def work.
  6. Searched around and didnt see anyone mention anything about this which makes me think its a known thing thats been around or Im just having some funky problems. Whenever I click 'Add' the only options I have under Category is 'None' and 'Other...'. Its only when I click save and then go back to the item I just created that the full list of all my categories are listed. This something thats known or did I miss something... TIA!
  7. Regardless of what drive ProgFiles is on, the variable should point to the correct drive. When you get there error, what does it say? and what line does it say it occurs on? Its def not the space in your folder.. vbscript doesnt read in like batch does.. in other words it will look at the entire path and not up until a space like batch does (unless you have it in quotes)
  8. Excellent, thanks... I thought you meant change localized string OR change default value... not BOTH. Anyway, that works like a charm. Thanks!
  9. What would be the best way to add additional variables to be used with WPI?
  10. On a kind of side note, would it be possible to actually add buttons on the far left column (along with All, None or Default) and allow users to create additional configs tied to those buttons? In other words, allow the user to setup an additional button for 'Full Install', another for 'Medium' and a 3rd for 'Lite'. Or along the same lines as bernrs concept, add a button for 'Laptop', another for 'Main PC' and a 3rd for 'office'. I think this would be a very useful feature. Hope this isnt too far off topic from this thread... EDIT:: Okay, I just took a look at this mod and I think it allows just what Im looking for (short of using a combo box instead of buttons). I though this mod automatically read in the hostname of the pc and used that config. But with this method, I can create multiple 'default configs' and choose which one I want, instead of being limited to All, 1 Default or None. Right? If so.. thanks! Thats exactly what Ive been looking for.
  11. echo %programfiles% at the command prompt... it should return 'C:\Program Files' (assuming progfiles is on your c drive) so using your syntax youre actually running 'C:\ProgramFilesNortel Networks\Extranet.net'... see the problem?? the syntax you want is WshShell.Run (PROG & "\Nortel Networks\Extranet.exe...
  12. I changed the default value of that key to 'My Files' but didnt notice a change anywhere that mentioned My Documents... I also couldnt find anything in TweakUI on changing the name of My Docs as well. Im familar with the places bar, but I also want to make sure everything, including the top 'My Documents' folder in Explorer has this change as well.
  13. Ping -n 4 127.0.0.1>nul will ping that ip address (your local machines 'loopback' address) for 4 seconds (-n 4). This is just a common way of 'stalling' or 'pausing' your batch file for a determined about of time. The syntax he used just cleaned it up a bit... he created a variable called 'P4' and set it to 'Ping -n 4 127.0.0.1'. This way if he had to use it multple times through out the script he can simply reference the variable instead of typing out the entire line every time.
  14. Np.. as far as the 'forgot to put windows in fron of sys32' I did put it in front of it.. thats what the 'SYSD &' is for... if you look at the top of the script SYSD is set to %systemdrive% and the '&' symbol concatenates (aka puts together) that variable with the rest of the line in quotes. And to be honest, if you want to get into symantics, you dont need the 'C:\windows\system32' in front of mstsc.exe anyway because the sys32 directory is in your system path, which means you can actually launch any executables that reside in that directory from anywhere. G'head and try it.. just goto Start>Run and type 'mstsc', itll launch without issue (should) And lastly in regards to compiling this to exe, if you have Microsofts Visual Studio you can compile it.. im not aware of any other 3rd party apps that do this (although there may be one that exists)
  15. Sorry if this had already been covered before, but I could come up with anything.... Is there any easy way to have multiple default configurations? So that way I could have a button for my home pc, my laptop and some other config by the press of a button, similar to how the 'default' button works? Thanks!
  16. Batch wont do what youre looking for, youll need to use AutoIt or VBScript. Ive never used AutoIt, but for VBScript... Open notepad and copy the following text into it... Set WshShell = WScript.CreateObject("WScript.Shell") ' Set %Systemdrive% variable to 'SYSD' SYSD = WshShell.ExpandEnvironmentStrings("%Systemdrive%") ' Launch Nortel App WshShell.Run ("Extranet.exe -auth 0 -user LOGIN -pwd PASSWORD -serverip 000.000.000.000 -s") ' Wait until Nortel App comes up Do until WshShell.AppActivate ("PLACE TEXT OF TITLEBAR OF YOUR NORTEL PROMPT HERE") WScript.Sleep 2000 Loop ' Hit Enter WshShell.SendKeys "{ENTER}" WScript.Sleep 1000 'Launch RDC WshShell.Run (SYSD & "\system32\mstsc.exe REMOTECOMPUTER.rdp") ' Wait until RDC box comes up Do until WshShell.AppActivate ("PLACE TEXT OF TITLEBAR OF THE RDC PROMPT HERE") WScript.Sleep 2000 Loop ' Hit Enter WshShell.SendKeys "{ENTER}" Edit the "WshShell.AppActivate" lines and place in the text of the Titlebars of the app prompt windows as mentioned. Save it as <whatever>.vbs and place this in the same location as 'Extranet.exe' and 'REMOTECOMPUTER.rdp' This should work, but without testing with the actual apps cant guarantee itll work of course...
  17. I figured this had already been covered, but I couldnt seem to find it via search... if its already been covered, apologies for the double post and by all means let me know the search terms used for future reference. Basically, I want to change all instances of 'My Documents' to 'My Files'. I plan to have a 'My Documents folder inside of it, but I want all shortcuts / menu options / 'Save As','Open' dialog boxes to display 'My Files' instead... This possible? Thanks!
  18. Unfortunately, No. Because RunOnceEx actually runs at a stage before items like 'startup' programs loading up, the desktop being 'drawn' and... themes being applied, there isnt anyway to get around this. Do a search, there are at least a couple threads that say the same thing.
  19. Ah sorry.. guess i missed that part.. thx!
  20. 1 of two ways you can do this.. 1st off, what I did was take the 2 iTunes.pref files and the 1 QT settings file and placed them in a folder (called 'prefs') of which is located in the folder where the itunessetup.exe is. Because they have the same name, I added '-LOC' to the iTunes.pref file found in 'local settings\...' and '-APP' for the one found in 'Application Data\...' 1. Create a batch file (which can be placed in the same folder as your setup.exe) that does these steps for you (run setup.exe and copy the 3 files) and call it from your ROE: @echo off set APPS=[<Set Location of where your iTunes installation folder is located here>] "%APPS%\iTunes\setup.exe" /S /V"ISSETUPDRIVEN=0 ASSUME_MEDIA_DEFAULTS=1 ASSUME_QT_DEFAULTS=0 ALLUSERS=1 SILENT_INSTALL=1 INSTALLDIR=C:\Multimedia\iTunes /QN" ECHO F | XCOPY /Y "%APPS%\iTunes\Prefs\iTunes.pref-APP" "%USERPROFILE%\Application Data\Apple Computer\iTunes\Prefs\iTunes.pref" ECHO F | XCOPY /Y "%APPS%\iTunes\Prefs\iTunes.pref-LOC" "%USERPROFILE%\Local Settings\Application Data\Apple Computer\iTunes\iTunes.pref" XCOPY /Y "%APPS%\iTunes\Prefs\QuickTime.qtp" "%ALLUSERSPROFILE%\APPLICATION DATA\QUICKTIME\" or 2. Place each of the 4 commands in your ROE: REG ADD %KEY%\021 /VE /D "iTunes v4.7" /f REG ADD %KEY%\021 /V 1 /D "%APPS%\iTunes\setup.exe /S /V\"ISSETUPDRIVEN=0 ASSUME_MEDIA_DEFAULTS=1 ASSUME_QT_DEFAULTS=0 ALLUSERS=1 SILENT_INSTALL=1 INSTALLDIR=C:\Multimedia\iTunes /QN\"" /f REG ADD %KEY%\021 /V 2 /D "ECHO F | XCOPY /Y \"%APPS%\iTunes\iTunes.pref-APP\" \"%USERPROFILE%\Application Data\Apple Computer\iTunes\iTunes.pref\" REG ADD %KEY%\021 /V 3 /D "ECHO F | XCOPY /Y \"%APPS%\iTunes\iTunes.pref-LOC\" \"%USERPROFILE%\Local Settings\Application Data\Apple Computer\iTunes\iTunes.pref\" REG ADD %KEY%\021 /V 3 /D "XCOPY /Y \"%APPS%\iTunes\Prefs\QuickTime.qtp" "%ALLUSERSPROFILE%\APPLICATION DATA\QUICKTIME\\" I havent gotten around to testing these, but they should work. Also.. dont forget to change the 'INSTALLDIR=' switch if you want iTunes to be installed to another location (or remove it entirely if you want it installed to your Program Files folder)
  21. I hate how much PDF's bring firefox to a screaming halt whenever theyre opened. I thought I remember reading someplace around here how to make PDF's prompt for download instead of automatically opening in Firefox with the Adobe Reader... Anyone know how to do this UA style? Thanks!
  22. Awesome... cant wait to test this out. Do you know if theres also a switch which can be used to install in an alternate location? Does INSTALLDIR work with this like it does with other installsheild apps? UPDATE:: Ah holy hell.. thanks so much for this. Just tested on the latest iTunes (4.71.*) and this works like a **** charm and by the way you mentioned this update Im sure you realize there has been a ton of discussion on the 'optimum' way to do this. Finally... a method that actually works flawlessly without a bunch of scripting or hacking up of the installer. Oh and INSTALLDIR works like a charm as well... You rock.. and nice work.
×
×
  • Create New...