Jump to content

`Felix`

Member
  • Posts

    482
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

Everything posted by `Felix`

  1. Good stuff and thanks for the clarification. I was just doing some checking of the registry as i made changes manually and put the script together based on that... Always happy to be wrong, as long as i learn from the mistakes I will give your script a test this evening.
  2. Here is a cmd file that will do it all for you in one go... has been tried and tested @echo off :: Here is a quick way to split the date into parts. :: Supports yyyy-dd-mm, yyyy-mm-dd, mm-dd-yyyy, and dd-mm-yyyy, :: doesn't rely on dashes vs slashes. for /f "tokens=2,*" %%d in ("%date%") do set today=%%d echo. | date | find "(yy" > nul if !%errorlevel%!==!0! ( set year=%today:~0,4% echo. | date | find "mm)" > nul if !%errorlevel%!==!0! ( set month=%today:~-2% set day=%today:~-5,2% ) else ( set month=%today:~-5,2% set day=%today:~-2% ) ) else ( set year=%today:~-4% echo. | date | find "(mm" > nul if !%errorlevel%!==!0! ( set month=%today:~0,2% set day=%today:~3,2% ) else ( set month=%today:~3,2% set day=%today:~0,2% ) ) :: Write the registy file for import with the correct date and time echo Windows Registry Editor Version 5.00 > %tmp%\wuset.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update] >> %tmp%\wuset.reg :: Change this option below to what you want your configuration to be... :: dword:00000004 = Automatic (recommended) :: dword:00000003 = Download updates for me, but let me choose when to install them. :: dword:00000002 = Notify me but don't automatically download or install them :: dword:00000004 = Turn off Automatic Updates (not recommended!) echo "AUOptions"=dword:00000004 >> %tmp%\wuset.reg echo "ConfigVer"=dword:00000001 >> %tmp%\wuset.reg :: You can change the default time for checking from 3am (below and default) to what you like... echo "NextDetectionTime"="%year%-%month%-%day% 03:00:00" >> %tmp%\wuset.reg echo "ScheduledInstallDate"="%year%-%month%-%day% 03:00:00" >> %tmp%\wuset.reg echo "ScheduledInstallDay"=dword:00000000 >> %tmp%\wuset.reg echo "ScheduledInstallTime"=dword:00000003 >> %tmp%\wuset.reg echo "SetupWizardLaunchTime"=- >> %tmp%\wuset.reg :: Now apply the correct settings to the registry regedit /s "%tmp%\wuset.reg" :: Clean-up - Delete the reg file after use del /f /q "%tmp%\wuset.reg" Enjoy
  3. Yes i have been doing that with a heap of applications... be aware though that if you read up about creating 7-zip installers, you do still require the startx.exe or msistub.exe for use with msi files in most if not all cases. Also i didn't want to add time to the installation process by archiving the applications when i have plenty of space on my DVD. Some things that are small, i have created 7-zip installers from, but office is huge, as are some other things and as such i would prefer to leave uncompressed as i don't need to worry about space. Good suggestion and valuable for most people reading the thread though
  4. Thanks Simon, I am doing some testing today of this update. Further, you should simplify the need for preinst2/3 my just changing some of the code for the original preinst to use a command line option for example: preinst.exe /preinst2.ini In this way you only need the one .exe file and you don't have to have the .ini file as the default name. Just a suggestion
  5. Thanks again Simon - I am still testing and i should have taken the rest of the stuff out, as i was mainly working to get the msi and msp files working. Can i make some further suggestions... 1. Would be great to have an in-built %CDROM% detect for example FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\preinst.ini SET CDROM=%%i: 2a. A common thing that lots of people will do is add registry settings - so i suggest that if the line is something like apps\registryfix\register.reg That your app reads the .reg part and automatically prefaces the line with REGEDIT /S 2b. A similar thing could be done for .msi and .msp files. e.g. startx /wait msiexec /i for .msi and startx /wait msiexec /update for .msp 3. Allot of people will also obviously be running cmd/dos commands and will want them hidden. Have you had a look at RunHiddenConsole (the source is in the thread) You may like to include this in your app so that cmd/dos windows are hidden. Just some thoughts & suggestions
  6. Thanks for your reply and help simon... I have finally cracked it after thinking about it and doing some further testing. Firstly i remembered that you need to use "StartX.exe" with msi's used in this manner (start /wait - will not work)... and of course you need to call the complete command string. So below is the correct syntax etc to actually run msi's from your util. You may want to include this information in your documentation. Also for anyone that does have STARTX.EXE - you can download it here Application Installer Configuration File ---------------------------------------- #The 5 tags below are crucial for the program to run #Edit by all means but do not delete or comment them out!!! <TiTle>Application Installation <Text1>Installing Your Software Please Wait..... <Text2>Currently installing <Font>system <ProgColor>blue ---------------------------------------- #Any combination of tags <lbl> <prg> or <dos> can be used below, #but every <lbl> tag will be counted when updating the progress bar. #KEY: <lbl>Text label of action (EG 'Installing Blah Blah'). # <prg>A program or command to be run from this location. # <dos>The same as using Start\Run (EG. Terminate). # <lbl>Gif Movie Gear 4.2 <prg>apps\moviegear\moviegear42.exe /VERYSILENT <dos>apps\moviegear\moviegear-cleanup.cmd <dos>REGEDIT /S apps\moviegear\register.reg <lbl>Macromedia Dreamweaver 8.01 <prg>startx /wait "msiexec /i apps\dreamweaver\dw\dreamweaver8.msi /qb-!" <prg>startx /wait "msiexec /update apps\dreamweaver\patchpackage.msp /qb-!" <dos>apps\dreamweaver\license.exe <lbl>VMware Workstation 5.5 <prg>startx /wait "msiexec /i apps\vmwarewkst\VMware_Workstation.msi /qb-!" <prg>REGEDIT /S apps\vmwarewkst\register.reg <lbl>Quick Batch File Compiler 2.0.7.0 <prg>apps\utils\qbfc2070.exe <lbl>Registry Fix 3.0 <prg>apps\registryfix\registryfix.exe /VERYSILENT <dos>REGEDIT /S apps\registryfix\register.reg Hope this information is valuable. Further if you are running clean-ups of shortcuts and other stuff as i am here, then i suggest as Simon has earlier to run each app and related clean-up, reg adds etc from a cmd file. You can hide them easy with cmdow or even better RunHiddenConsole.
  7. Hi there Simon, Well i have been trying to get this little tool to go for days and have tried all manner of things to make it work without success. You will see my bit of test preinst.ini file below. From this when run i can get the first and the last option to install without problems, however nothing else installs as it should. They flash up, but the installers don't run. Please tell me where i am going wrong? Application Installer Configuration File ---------------------------------------- #The 5 tags below are crucial for the program to run #Edit by all means but do not delete or comment them out!!! <TiTle>Application Installation <Text1>Installing Your Software Please Wait..... <Text2>Currently installing <Font>system <ProgColor>blue ---------------------------------------- #Any combination of tags <lbl> <prg> or <dos> can be used below, #but every <lbl> tag will be counted when updating the progress bar. #KEY: <lbl>Text label of action (EG 'Installing Blah Blah'). # <prg>A program or command to be run from this location. # <dos>The same as using Start\Run (EG. Terminate). # <lbl>Gif Movie Gear 4.2 <prg>apps\moviegear\moviegear42.exe /VERYSILENT <dos>apps\moviegear\moviegear-cleanup.cmd <dos>REGEDIT /S apps\moviegear\register.reg <lbl>Macromedia Dreamweaver 8.01 <prg>apps\dreamweaver\dreamweaver8.msi /qb-! <dos>apps\dreamweaver\patchpackage.msp /qb-! <dos>apps\dreamweaver\license.exe <lbl>VMware Workstation 5.5 <prg>apps\vmwarewkst\VMware_Workstation.msi /qb-! <dos>REGEDIT /S apps\vmwarewkst\register.reg <lbl>Quick Batch File Compiler 2.0.7.0 <prg>apps\utils\qbfc2070.exe
  8. Excellent simon - thankyou again very much for your hardwork! I have downloaded the update and will do some testing over the next 24 hours...
  9. Simon, this is excellent news - thankyou! The only other thing i can think of at the moment is that you could have 3 other tags in the ini file. 1. font="fontname", 2. fontcolor="fontcolor (name i.e. red or hex i.e. #ffffff)" and 3. bgcolor="background color (name i.e. red or hex i.e. #ffffff)". Just some thoughts, don't know how hard or if you want to do it, but your asked for more ideas I think most people these days install .net - it may be worth while coding in vb.net as Windows Visa may not include the required VB6 files needed? just a thought... Thanks again!
  10. Is your install in an addon to RVM's integrator? If so can i download it from you as i do have a registered version of WinRAR and would like to add it
  11. Hi there - just running some tests on V1 of SOF and have found that after installing FF on the new machine that the profile information etc is missing and no themes have been applied and no bookmarks. I have checked and the themes are installed as are the extensions... but they haven't been applied... Suggestions please? Also another mirror for download here http://www.simplify-i-t.com/guides/filelib/Sof.zip
  12. Hi ya and thanks for your response... being a very novice VB person (very very basic - am a JS person) i am not sure how to compile etc... if you can give me a few pointers etc i would appreciate it
  13. Simon great little app! Can i make some requests please? 1. Being able to change the font? - Use standard system font for example? 2. More than one command line option - i have a cleanup that runs after each applications for things like icon placement etc - would like to be able to do that with your little app. Also i noticed what may be a little bug - i had a test that had the preinst.ini in c:\ and then in the ini had paths such as e:\folder\app.exe /switch - this didn't work... that would be good to have also. Thanks for your hard work - would be great if you include at least request 2. PS if you would like somewhere to host the source and the files etc - am happy to host them on my website.
  14. I want to know if this will work when i add this to my WPI install instead of runonceex? And will this work when i place this in "\Install\VMware\" instead of OEM? No for it to work in the \install\vmware directory you will need to make one change. Change this For Each objDrive in colDrives If fs.FileExists(objDrive.DriveLetter & ":\WIN51") Then strOEM = objDrive.DriveLetter & ":\OEM" Next to this For Each objDrive in colDrives If fs.FileExists(objDrive.DriveLetter & ":\WIN51") Then strOEM = objDrive.DriveLetter & ":\install\vmware" Next That will allow it to run from the directory you want.
  15. Mmm good point! didn't think of that... i was looking to minimise the use of RunHiddenConsole.exe as i am using it in my completed exe too ;!@Install@!UTF-8! RunProgram="RunHiddenConsole /w wscript VMWareTools.vbs" ;!@InstallEnd@! Suggestions?
  16. Excellent - you have pointed me in the right direction - now i have modified the code a little differently to what is above - but it is doing exactly what i want. What i have done is created a self extracting installer that checks and then if it is vmware installs the tools - it all in once exe file - very clean and simple. I would like to clean it up a little further - would it be possible for you to tell me what the command line code is that you are using in the 7zip exe for "VMwareTools.exe" - right now i am including your current VMwareTools.exe file inside another 7zip exe that i have running the script etc... i would prefer to do it all from a single file - much cleaner... Thanks again for you work - i really appreciate it!
  17. Hi RogueSpear, Am playing around with your vmware script and i would like to use it from any location i drop the script and .exe into - how can i change the script so that it is not locked to the OEM path. may thanks!
  18. Hi All, Something that i would like to do is do a check of the machine environment at first logon and if windows is running inside VMware, then i would like to launch the VMware Tools installation automatically. My question is 1. is it possible to detect that Windows is running inside VMware? 2. If it is possible - how to do it? Appreciate any help or advise. Cheers Darren
  19. Hi echap, Have been doing some testing and the current way that RunOnceExMaker is outputting the Xplode XML is now working correctly. The format that RunOnceExMaker is outputing is like this below: <item display='WinRAR 3.51' > <execute display='WinRAR 3.51' program='utils\wrar351r.exe' arguments='/s' /> The correct code needs to be as follows: <items> <item display="WinRAR 3.51"> <execute display="WinRAR 3.51" desc="Installs WinRAR 3.51"> <program>#XPLODE#\wrar351r.exe</program> <arguments>/s</arguments> </execute> </item> Please let me know if you need any more information. Look forward to an update
  20. Hi echap, Any updates on Xplode (XML) output/intergration?
  21. No joy but thankyou for your suggestions...
  22. Hi there, I would like a little bit of help putting together a smarter batch file that i can reuse... Currently i am basically doing this on my application CD's cd dir1\ start /wait doIT.exe (do it my custom installer that i have put together for each of my applications to silently install and configure. i.e. add reg settings etc.) cd .. cd dir2\ start /wait doIT.exe cd .. cd dir3\ start /wait doIT.exe and so on... I thought it would be good/cleaner to do something like for %%i in (dir) do if exist %%i\doIT.exe the code to run... I know the code above is not correct - but this will give you the idea of what i am seeking... i would appreciate any help/advice you can offer....
  23. Goodone esas - the only thing i notice is that when you run it (without the silient option) that it tell you there is "Duplicate user profile detected" even when there is not. Other than that looks good - I noticed you cleaned up the code as well - well done
×
×
  • Create New...