I've done automatic testing of the installer on Virtual machines for a while now. With FinalBuilder I start up the virtual machine(varying operating systems), copy the installer over, and execute it with Sysinternals psexec.
While it works good for WindowsXP and before, it got problematic with Vista. I could do it with UAC turned off. Now it's also problematic with Windows7. I read somewhere that in order for psexec to work, it has to use a user account that not only is in the local administrator group but wholse name is "Administrator". For other reasons, that I can't remember right now, I have to use a domain user account. That leaves me with the option to use THE domain admin account for automated installer tests, which is not really an option.
Now, I'm interested in how other people perform automated installer tests?
Rgds
Richard
Hi Richard,
I also had similar problem, the solution I found is to download version 1.98 of psexec from sysinternals web site.
this version support -h switch which actually say “If the target system is Vista or higher, has the process run with the account’s elevated token, if available.”
Note that this documentation doesn’t exists in the web site it only available when you run psexec /?.
The problems are:
- Final Builder 6 doesn’t support the -h switch hence you must move to execute program action and deal with all psexec parameters by your self.
- once you are using Execute Program action when I tried it the execution never ended (but actually it made the work), to work around this need to uncheck the"Log output" checkbox (which is not perfefect solution at all).
I expect FinalBuilder people to provide a new psexec that supports the new switches because it critical for the current OSs (Vista, Win 7, Win 2008, Win 2008 R2)
Regards,
Evyatar