Help - Search - Members - Calendar
Full Version: AutoIt: Daemon Tools 4.00
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
MHz
Hi muiz,

QUOTE
In windows this works great,but when i use it from my dvd it doesnt do the second part when enter windows.
Even when i do 90 instead of 60 minutes ( shutdown.exe -r -f -t 90 -c ) no go


New Daemon Tools 4.00 script posted. I have troubles trying to reproduce your problem, so it maybe your timed reboot causing the problem. The script should run at RunOnceEx (I assume where you are running it?). You then logon and DT4 will complain of a reboot needed. The script should handle it and reboot 10 seconds after that window (gives everyone time...). It should run DT4 during the next logon to Desktop after reboot.

Remove your reboot command from your script and let the DT4 script handle it.
Please do not post responses in the AutoIt thread as it is not a devoted DT4 thread.
Alert me of any further problems.

MHz.

If anyone else is experiencing problems, then post here after using the latest script. Thanks.


Debug Only Script:
Click to view attachment

Normal Usage script:
AutoIt thread
muiz
Hey

Sorry man i didnt know , im no fan of autoit.
But thx for your work in this one.
It installs fine ( yes runonce )
then for the first time in windows there is an icon of it on the desktop , but i cant click it , it says its no proper icon file
After i reboot the pc again myself , then all is fine , its installed no more icon ,and wizard new hardware.


and again , sorry m8 blushing.gif
MHz
QUOTE (muiz @ Nov 30 2005, 12:36 AM) *
then for the first time in windows there is an icon of it on the desktop , but i cant click it , it says its no proper icon file
After i reboot the pc again myself , then all is fine , its installed no more icon ,and wizard new hardware.

I notice the Desktop Icon sometimes remains. This is not a script issue as more of a Windows Desktop issue with refreshing. Reboot is not required as simply pressing F5 while on Desktop will make the Icon disappear. It is not a constant refresh problem to be concerned about. You may find a virtual machine install may not refresh ok ? smile.gif
Wizard, may look into handling it.
RogueSpear
Not posting a problem, just wanted to say sweet work on this solution. I've learned more about AutoIt from you and your examples than I can really explain. Thanks again!
muiz
but after reboot ..sometimes... no daemontools

very strange , depents on wich pc i install

so.. problem for me
MHz
@muiz
What sets the results to be different between these PCs ?
Are the window titles the same on these PCs ?
Any information could be helpful.

Edit:
Have updated the posted script with some changes that may help.
Since DT4 is sometimes not installing on the reboot for some PCs. I would like to know if the script is starting on reboot (you should see the icon in the systray), or the installation does finish but without result. The updated script will invoke DT4 to execute after reboot, if it does not show the 1st window in 30 seconds as long as the script runs on reboot ok.

@RogueSpear
Thanks for the nice words. I'm glad you are learning through my scripts. It makes the effort spent more worthwhile.
Shark007
QUOTE
Have updated the posted script with some changes that may help.


Is there a possibilty to place a link in your 1ST post to your posted script?
Soon, it will be buried amongst 50 other pages and difficult to find.

By the way, when i 1st came across your script, i tested it, and it worked fine.


shark
MHz
QUOTE (Shark007 @ Nov 30 2005, 09:03 PM) *
Is there a possibilty to place a link in your 1ST post to your posted script?
Soon, it will be buried amongst 50 other pages and difficult to find.

By the way, when i 1st came across your script, i tested it, and it worked fine.

It is still currently the last posted script in the Autoit thread and I do not want to prolong to revise the script for too much longer. The last posted script is the best to my current knowledge unless someone can prove otherwise. For proof of failure, I do need good information to pinpoint any issue with the script.
I still have not tested DT4 from Cmdlines.txt yet, which is where I install software from, so that may reveal a revise of the script with an extra window added or something.
Shark007
When i posted that request, i thought i found the script in the nlite\addons section.
That particular section is loaded with crap, and near 50pages.
Sorry, for my confusion.
yes, the autoit thread moves alot slower and is much cleaner.
Thanks for sharing your work, it is appreciated.

shark
muiz
Still doesnt work for me , only in vmware no.gif
MHz
QUOTE (muiz @ Dec 4 2005, 12:21 AM) *
Still doesnt work for me , only in vmware no.gif

Debug Script attached in 1st post.

I cannot fix a script that is working. I need any information of failure to fix any issues that cause it.

The Debug Script will log as such:
CODE
16:54    
16:54    Start:    Install(2)
16:55    Win:    "Welcome to the DAEMON Tools"
16:56    Win:    "License Agreement"
16:57    Win:    This program will install SCSI
16:58    Reg:    "_DTools", "C:\_Daemon_Tools_v4.00.exe" /postrun
16:58    Win:    "Setup must restart Windows" = Cancel
16:59    Dir:    "C:\Program Files\DAEMON Tools" does not exist
17:00    
17:00    Start:    Install(2)
17:01    Win:    "You must reboot after previous operation"
17:01    Reg:    "_DTools", "C:\_Daemon_Tools_v4.00.exe" /postrun
17:21    Win:    "You must reboot after previous operation" = Restart
17:21    Dir:    "C:\Program Files\DAEMON Tools" does not exist
18:04    
18:04    Start:    Install(2)
18:07    Win:    "Welcome to the DAEMON Tools"
18:08    Win:    "License Agreement"
18:09    Win:    "Choose Components"
18:10    Win:    "Choose the folder"
18:34    Win:    "Completing the DAEMON Tools"
18:34    Time:    29 seconds
18:34    Clean:    Remove shortcuts
18:35    Clean:    Delete spyware installer
18:35    Dir:    Size = 816498 | Files = 12 | Dirs = 4

It will create the log on the user's Desktop.
muiz
It keeps scrolling the directory....have to stop it manualy
And after that spy sweeper says it had installed the spy ware
redfive19
@MHz

I haven't rebooted yet but amazing work on this script. Looking at the code, it's very clean. I hope I can write code like that some day! Do you code in any other languages? (yes I consider autoit to be a programming language!)

-redfive
MHz
QUOTE (muiz @ Dec 6 2005, 07:44 PM) *
It keeps scrolling the directory....have to stop it manualy
And after that spy sweeper says it had installed the spy ware

IMHO, that external forces are at play, causing your installations to fail. This SpySweeper starts with Windows, correct? which maybe causing problems? You may also have an overactive AV program that is interfering ? Or something else in your OS that is causing issues with installations. I cannot see a fault from my postion of installing DT4. As for spyware installing, unless the installer adds something regardless, then no spyware is installed from the spyware installer that it adds to the program folder. If you manually install with the spyware checked then you will know that it has been added to your system. The spyware installer will popup after about 30 seconds and follow the steps of a normal installer. You will get a ugly searchbar popup on your taskbar shortly after. My script takes out the installer before anything can happen, but as you have mentioned SpySweeper, I am guessing that SpySweeper is stepping in when SetupDTSB.exe is seen and interupting the AutoIt script. What about the Daemons Tools directory, maybe SpySweeper removes the whole lot ?
Sounds like a good theory ?

Picture of spyware installer which I do not receive after scripted installation.

I cannot fault the script so I do not know how to help you further on this.


QUOTE (redfive19 @ Dec 7 2005, 03:22 AM) *
@MHz

I haven't rebooted yet but amazing work on this script. Looking at the code, it's very clean. I hope I can write code like that some day! Do you code in any other languages? (yes I consider autoit to be a programming language!)

-redfive

Thanks. I am sure you can write good enough code after the amount of code that I have written. I like basic languages and sometimes do some Lua and have done some Visual Basic. Learning any language takes alot of willingness and devotion, but it can be done OK. newwink.gif
Alot of that code was generated by my CMenu program FYI. No sense retyping the same stuff oner and over, right? yes.gif
RogueSpear
@muiz, maybe Mhz just found the problem you're having with my switchless silent installers as well. You may want to uninstall the antispyware and temp disable the antivirus and give these a shot.
muiz
QUOTE (RogueSpear @ Dec 7 2005, 12:21 PM) *
@muiz, maybe Mhz just found the problem you're having with my switchless silent installers as well. You may want to uninstall the antispyware and temp disable the antivirus and give these a shot.

yours supossed to installed from svcpack , no spy or anti virus software running at that point
MHz
@muiz
Updated the DT4 script which tests ok for me that the toolbar installer does not even appear on the HDD. Just one line added and one modded alittle. If interested, check the AutoIt thread to download.
muiz
QUOTE (MHz @ Dec 13 2005, 11:41 AM) *
@muiz
Updated the DT4 script which tests ok for me that the toolbar installer does not even appear on the HDD. Just one line added and one modded alittle. If interested, check the AutoIt thread to download.

thx MHz
muiz
Now it tries to reboot windows

CODE
Case WinExists('DAEMON Tools 4.00HE', 'You must reboot after previous operation')
            _Log('Win:' & @TAB & '"You must reboot after previous operation"')
            _RunOnce()
            ControlClick('DAEMON Tools 4.00HE', 'You must reboot after previous operation', 'Button1')
          ; Desktop Reboot after 20 seconds.
            Sleep(15*1000)
            MsgBox(262144, 'DAEMON Tools 4.00HE', 'System restart commencing now', 5)
            _Log('Win:' & @TAB & '"You must reboot after previous operation" = Restart')
            Shutdown(2)
            Exit


reboot after 20 sec?

how can i disable this or make the time longer , cause "shutdown.exe -r -f -t 90" this is not ready yet.
and it leaves a file behind now on desktop "DT4_log.log"
MHz
@muiz
I see you used the debug script. Only the script in the AutoIt thread has the latest change. I see from the log that the toolbar installer did get deleted from the HDD before it could do anything.

QUOTE
Recommended:
Allow the AutoIt Script handle the system reboot at Desktop logon for ease (default).
Above quoting myself from AutoIt thread. When installed at RunOnceEx, the script will do the reboot for you when the desktop is active so I do not know why you are using the systems Shutdown.exe to also do the reboot ?

If you want to increase the timeout then look at this line:
QUOTE
Sleep(15*1000)

This is a 15 second Sleep before continuing with the next line of code. You can increase or decrease the 15 to a number that is more suitable for you.

The other 5 seconds is used for the MsgBox(). This can be changed also if suitable.
QUOTE
MsgBox(262144, 'DAEMON Tools 4.00HE', 'System restart commencing now', 5)

To Exit without timeout and reboot, then add an Exit after the ControlClick() and before the Sleep(). The script will Exit immediately.
QUOTE
_Log('Win:' & @TAB & '"You must reboot after previous operation"')
_RunOnce()
ControlClick('DAEMON Tools 4.00HE', 'You must reboot after previous operation', 'Button1')
Exit
; Desktop Reboot after 20 seconds.
Sleep(15*1000)
MsgBox(262144, 'DAEMON Tools 4.00HE', 'System restart commencing now', 5)
_Log('Win:' & @TAB & '"You must reboot after previous operation" = Restart')
Shutdown(2)
Exit


If you choose to use the systems Shutdown.exe, then use the Exit example above.

Use the script from the AutoIt thread to install it normally without any log file and with the latest changes.


Edit: Updated Debug script in 1st post.
muiz
thx , i will give it a try thumbup.gif


EDIT :

This doesnt work , cause now it tries to reboot while things are loading , and the system wont boot untill i click it away.
Isnt there a way without daemontools reboots , and i can let it reboot the way it always did?
your exit sample?
dont know if i can do this , im no autoit profesional blushing.gif
added screenshot
Kapo
so this DT4 script doesn't work?
Let's take a look!
MHz
QUOTE (muiz @ Dec 15 2005, 08:41 PM) *
This doesnt work , cause now it tries to reboot while things are loading , and the system wont boot untill i click it away.
Isnt there a way without daemontools reboots , and i can let it reboot the way it always did?
your exit sample?
dont know if i can do this , im no autoit profesional blushing.gif
added screenshot

No Reboot script

Added No Reboot script also to AutoIt thread. newwink.gif




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.