Jump to content

MHz

Member
  • Posts

    1,691
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

Everything posted by MHz

  1. REG ADD %KEY%\004 /VE /D "Java Runtime 5.0" /f REG ADD %KEY%\004 /V 1 /D "\"%systemdrive%\install\java 5.0.exe\" /s /v\"/qn\"" /f Sometimes is best to wrap the /qn in quotes as above. You have a space in the filename so it will need to be quoted as well. Now that looks like this when added to registry. "C:\install\java 5.0.exe" /s /v"/qn"
  2. REG ADD %KEY%\090 /VE /D "VLC Media Player" /F REG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\vlc.exe /S" /F Your switch was some kind of mix netween Inno Setup and perhaps Wise. It is a Nullsoft installer and they use uppercase /S This looks incorrect also. I add a /v to pass the following silent parameters to the msi. REG ADD %KEY%\055 /VE /D "Java Runtime 5.05" /F REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\jre505.exe /s /v/qb" /F
  3. Perhaps like this: REM Copying Foobar2000 Config File REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V foobar /d "cmd /c copy /y \"%cdrom%\Install\Apps\Extras\Foobar2000.cfg\" \"%appdata%\Foobar2000\"" /f else you would need to wrap the whole cmd in another pair of double quotes with backslashes. Your only copying 1 file so just use Copy to do it.
  4. I've taken a guess at your source code as I have not downloaded it. Am I close? If $cmdline[0] = 2 Then FileCreateShortcut($cmdline[1], $cmdline[2]) I would believe that workingdir and arguments could be a very useful addition.
  5. I have added a solution into the AutoIt thread. It handles both parts of the installation automagically. It will work fine from RunOnceEx. Not sure what would happen from installing at Cmdlines.txt time, as to wherher it would be still a 2 part install as no services run at that time to worry the forced reboot required.
  6. [b][size=3]Daemon Tools v4.08[/size][/b][size=1] . . . (32bit and perhaps 64bit)[/size] [url="http://www.daemon-tools.cc/"]Homepage[/url] [b]Summary:[/b] This is a 2 part silent installation. The 2nd part automatically happens on reboot at HKLM\...\RunOnce. This script is set to manage both parts of installation automagically. Execute the script from T-12 (Cmdlines.txt) which will install SPTD (the Scsi Driver). Installation of SPTD returns an exit code of 2 to notify of install/reinstall which the script handles (and also works in windows if you have an older version of SPTD installed (thus upgrades SPTD)). A registry entry is added into HKLM\...\RunOnce to install Daemons Tools automatically upon final reboot towards logon.[list] [*]Spyware installer is deleted post installation so it will not install. [*]Mount to CDRom association for ISO type. (optional, default = true) [*]Remove desktop shortcut. [*]Remove autorun entry in registry. [/list][b]Script Updates:[/b] Updated to v4.08 Installer v4.08 and above now accepts silent installation. [b]Script Download:[/b] [attachment=15419:attachment]
  7. Do it from Cmdlines.txt as mentioned here. HKCU entries will go to HCU for all accounts usage. This happens at T-12. RunOnceEx.cmd is different to your original question. RunOnceEx.cmd adds entries into the RunOnceEx key for installing applications at 1st logon. RunOnceEx.cmd is no good as a reg file as you cannot use batch commands like creating a %cdrom% variable for example.
  8. @RogueSpear No problems. You seem to have a good solid background for what you have learnt to further yourself. If someone can repack DT4 then sounds like you are the person for the job. Your still on a CD like me. Accumulating hotfixes are making it harder to squeeze stuff in. I also keep a separate software CD with fully automatic installs which I have been maintaining for about 5 years now. It keeps me for all the programs that do not fit onto the windows cd. It did go into DVD but I felt like a slave to it with all the updating, so resorted back to CD. I am not directing a view below directly at anyone. Just generic lines being used that display some kind of dislike for AutoIt, but people will use it as a last resort scenerio??? AutoIt for me is a full solution without have to rely on any other language to do anything else needed to complete a task on an unattended CD. I have good control of installations, except for the downright ugly ones such as DT4. You do not see me posting for help with installers but coming up with solutions that can be handled with AutoIt. Ofcourse other AutoIt users supply so much good scripts to help others. AutoIt is my 1st and last choice with Installations and I certainly would not utter words of not using an AutoIt solution from another for the sake to it being an AutoIt script. i do not see a good AutoIt solution with DT4, I have not tried, but that reboot sucks before even attempting it. I do not try to downgrade any other language so I would expect others to be the same. Some people just like the simplicity of a single DOS command to do something and I can understand that. Others that can do more should not be looked upon as people who do something that is a waste of time. Just like VBS can be frowned upon by some as being more then one line of code, wow. That is my say at present. I have shown an opinion in defence. I am going to rest now...
  9. Unless it is a simple program to repack then Repacking Disadvantages: 1. Chances of adding the registry entries 100% correct? 2. Will not be upgradable. Trying could unleash problems. 3. The program installed may not run incorrectly. 4. Runtime files added by original installer not present with a repack? 5. Repacking a NSIS correctly is guesswork. 6. Crucial driver files not loaded correctly. ... ... @muiz You may get silent with repacking, but atleast AutoIt is safe by using the original installer. @RogueSpear I mean no direct insult to your repacks, for the above. Just declaring the possibilities. You do carry alot of weight on those shoulders. I draw the line on what to repack and just repack the programs that I know that I will get right. Good luck with it. Personally, v3.47 looks good until a managable version is released. DAEMON Tools developers go to great lengths to stealth the installation and workings of the program. Hmm, AutoIt as the last resort? Oh please, that phrase is wearing thin. Created originally by people who cannot use AutoIt correctly in the first place. DOS, VBS, JS...better then AutoIt at managing installations? Very questionable for those without the knowledge.
  10. AFAIK, additional install.
  11. [size=2][b]Nero v7.0.1.2[/b][/size] English Installer [url="http://www.nero.com/eng/index.html"][Link][/url] Check values of $executable, $group and $serial. Script adds shortcuts that silent install does not supply. Comment any _CreateShortcut() lines that you do not desire. It is silent install, but will start Nero at end of install to register through the Gui. [attachment=9699:attachment]
  12. Use Inno Setup switches on Avast! Setup.exe /Sp- /NoRestart /VerySilent /SuppressMsgBoxes
  13. It is Nullsoft but it not capable do a Silent Install currently.
  14. MHz

    CMenu

    Hi (Watsup) totoymola, I try to iron out bugs if at all possible. Your welcome totoymola. Long time..., well, trying to track down which forum you are visiting is the hard part, lol .
  15. Well, that is hard to answer since IZArc that I get from the IZArc Website uses Inno Setup installer. Thus meaning that your installer has been repacked to MSI? For MSI, just type msiexec /? at a commandline to see the switches available. Example silent installation: msiexec /i IZArc.msi /qn
  16. You may not have OEMPreInstall = Yes in your Winnt.sif. More reference to Winnt.sif options can be found here. The Winnt.sif is located in the I386 folder. HTH
  17. Is that right or am I missing something? Just a few more needed. I believe that should be right. A leading backslash for each internal double quote.
  18. MHz

    CMenu

    I have seen other posts of yours, and to be quite honest, I do not care about your opinion. Technically, I think you are looking in the wrong spot for the memory leak . Version 2.2 is released. I currently will not accept further requests as this free program has been Crash&Burned. I have spent enough of my free time on this to try to make life easier for the good people. I would like to thank anyone who has been supportive of CMenu. I may consider a future version if only to maintain it's operational intregrity or other minor issues. Thankyou, MHz P.S. Jondar, use CMenu.exe /silent /dir "%programfiles%\customfolder" to install to your custom folder. Using this on an existing installation will mean that the registry entries would need to manually be redirected with their paths. Once used then the path is set, even reinstalls will use that path. It's in the helpfile also.
  19. Welcome to MSFN, The repair option is removed when you use a Winnt.sif to make it unattended.
  20. Welcome to MSFN, What you show will not work as the system does not know what %cdrom% is. Read through the guide again. RunOnceEx.cmd is normally executed from Cmdlines.txt. The %cdrom% variable is generated and used within the RunOnceEx.cmd itself.
  21. MHz

    Windows 2000 (all)

    It was edited only 3 days ago... Edit: Look at the bottom of the post!!! And is still updating. Good posting, the_guy
  22. Are you refering to this one here? This comes in a zip without an installer.
  23. MHz

    CMenu

    Thanks coucou. Have you found any information on this installer worth using? I have tried googling for information but come up with nothing. If I try /? on it, I get a "Do you want to report this to Microsoft" message. The way that I see of using this installer is to perhaps automate it with an AutoIt script. Have a look in your contextmenu for "More Options -> Installer Tools -> AutoIt Automated Script" or if it was not Identified then you are given further options there. If you find some useful information on this installer then let me know.
  24. I have issues with registering by adding to the registry. Nero does not like the serial if it does not generate that key number to suit. Here is what I have for starting Nero after the install. ; User Info for registration window. $name = @UserName $company = 'Company' $serial = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ; Execute Nero to register. $key = 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Nero.exe' $fullpath_nero = RegRead($key, '') If Not @error Then $pid = Run($fullpath_nero) $title = 'Welcome to Nero' $text = 'License Agreement' ; License Agreement Window If WinWait($title, $text, 20) Then ControlCommand($title, $text, 'Button5', 'Check', '') If ControlCommand($title, $text, 'Button4', 'IsEnabled', '') Then ControlClick($title, $text, 'Button4') ; Registration Window $text = 'Registration' WinWait($title, $text) ControlSetText($title, $text, 'Edit1', $name) ControlSetText($title, $text, 'Edit3', $company) ControlSetText($title, $text, 'Edit3', $serial) If ControlCommand($title, $text, 'Button4', 'IsEnabled', '') Then ControlClick($title, $text, 'Button4') WinWaitClose($title) ProcessClose($pid) Else WinClose($title) EndIf Else WinClose($title) EndIf EndIf EndIf Having problems with no shortcuts for silent installing. Config file seems to not work with serial. A very buggy installer.
  25. Thanks gunsmokingman. Your examples are good for learning to use VBS.
×
×
  • Create New...