MAVERICKS CHOICE Posted January 3, 2005 Share Posted January 3, 2005 Just converting an old batch I have for Partition magic 8 which uses an Autoit script but I would like to convert this to Runonceex but having a little difficulty changing, this is my original cmd I was using:start /wait %systemdrive%\INSTALL\APPLICATIONS\pm800\Setup\pm8pre.exe setup.exestart /wait %systemdrive%\INSTALL\APPLICATIONS\pm800\Setup\setup.exe /s& here is the runonceex cmd I changed to have tried a few variations & read the guide can't quite get there?REG ADD %KEY%\120 /VE /D "Partition Magic 8" /fREG ADD %KEY%\120 /V 1 /D "\"%systemdrive%\install\pm800\Setup\pm8pre.exe setup.exe\" /s" /fon one line of course. Link to comment Share on other sites More sharing options...
Astalavista Posted January 3, 2005 Share Posted January 3, 2005 http://www.appdeploy.com/packages/detail.asp?id=382your solution Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted January 3, 2005 Author Share Posted January 3, 2005 http://www.appdeploy.com/packages/detail.asp?id=382your solutionOK but this was installing fine in the original batch that called an autoit.exe & then pm8 setup.exe. I was just looking for a simple solution to convert this batch over to Runonceex that was all. Link to comment Share on other sites More sharing options...
Astalavista Posted January 3, 2005 Share Posted January 3, 2005 /s /v /qn Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted January 3, 2005 Author Share Posted January 3, 2005 /s /v /qnBut without the two extra \"?"\" %systemdrive%\install\pm800\Setup\pm8pre.exe setup.exe\" /s" /fso:REG ADD %KEY%\120 /VE /D "Partition Magic 8" /fREG ADD %KEY%\120 /V 1 /D "%systemdrive%\install\pm800\Setup\pm8pre.exe setup.exe /s /v /qn" /fThis is powerquests partition magic 8 a few years old now. Not working with the above switches Astalavista. Link to comment Share on other sites More sharing options...
Nologic Posted January 3, 2005 Share Posted January 3, 2005 Quick question...why doesn't the autoit script just call the setup executable?Run ( "setup.exe /s /v /qn" )Also if you like to toy with new things...MHz has been working with me on a RunOnceEx batch file replacement.Any ways the proper way would for the batch would look like so:REG ADD %KEY%\120 /VE /D "Partition Magic 8" /fREG ADD %KEY%\120 /V 1 /D "%systemdrive%\install\pm800\Setup\pm8pre.exe" /fREG ADD %KEY%\120 /V 2 /D "%systemdrive%\install\pm800\Setup\setup.exe /s /v /qn" /fNow with the AutoIt replacement it would look some thing like so:_FindDrive( "FIXED" , "boot.ini" )$PATH = "install\Disk Tools\"_Title ( "Disk Tools Installation..." )_Key ( "Partition Magic 8" , 'pm800\Setup\pm8pre.exe|^pm800\Setup\setup.exe^ /s /v /qn' )_Key ( "DiskKeeper 9" , 'DiskKe..._RunOnce()Which might seem like a lot more code at first...but as you stack things up it starts to lessen the amount of code required greatly. Check out the sample file included with it. Currently on the last page of the autoit thread. Link to comment Share on other sites More sharing options...
Astalavista Posted January 3, 2005 Share Posted January 3, 2005 i just downloaded the trial version i used the switch it worked.i dont knw why it doesn't work for you Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted January 3, 2005 Author Share Posted January 3, 2005 i just downloaded the trial version i used the switch it worked.i dont knw why it doesn't work for you Don't know exactly either, pretty sure the newer PM is not the same as the earlier Powerquest PM8 one.@NologicTried that also NG.Quote:Any ways the proper way would for the batch would look like so:REG ADD %KEY%\120 /VE /D "Partition Magic 8" /fREG ADD %KEY%\120 /V 1 /D "%systemdrive%\install\pm800\Setup\pm8pre.exe" /fREG ADD %KEY%\120 /V 2 /D "%systemdrive%\install\pm800\Setup\setup.exe /s /v /qn" /f Link to comment Share on other sites More sharing options...
MCT Posted January 3, 2005 Share Posted January 3, 2005 <execute display='Partition Magic 8' program='#SourceDrive#\Install\Apps\PartitionMagic8\Setup.exe' arguments='/s /f2#SystemDrive#\Pmagic8.log'></execute>thats what i use in my xplode, so ..%cdrom%Install\Apps\PartitionMagic8\Setup.exe /s /f2%SystemDrive%\Pmagic8.logu need the /f2 if running from cd Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted January 4, 2005 Author Share Posted January 4, 2005 Got very tired with this up very late last night trying to sort, ended up dumping my autoit script & modified the setup.txt to setup.iss thanks to a member in these pages just can't remember his name??I used his runonce ex & modified now working flawlessly thanks Guys.REG ADD %KEY%\120 /VE /D "Partition Magic 8.00" /fREG ADD %KEY%\120 /V 1 /D "%CDROM%\Software\pm800\setup\Setup.exe -s -f1\"%CDROM%\Software\pm800\setup\setup.iss"\" /f 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