Auto-it Enable and disable system restore - windows

Is it posible to enable and disable system restore using autoit. I have had a look on Google but i only found how to delete then not disable them. The code must work on windows-8, windows-7 and windows-vista and also windows XP if possible. Thanks for any help.

The _SR_Enable and _SR_Disable functions of the system-restore UDF in autoit will do this for you.

Related

Is it possible to disable UAC for a specific USER on Windows 7?

We have the following problem. We want to be able to install software without UAC and then later on switch the user and have UAC enabled. With the help of BrekIT (brekit.com) we then automate an installation process with UAC enabled.
In order to be able to be flexible we need to have a solution where we can toggle between UAC on and off without user interaction. It's executed in a secured test area so we don't need to worry about possible security risks.
Also worth to note. We use a vSphere Server with many vm's for testing. Perhaps with vmware there might be an alternate easier solution.
Thank you very much!
Julian
The short answer is that this is not possible. Imagine the security implications: All malware has to do is temporarily disable UAC, install the payload, and enable it again. Sorry.

ido-find-file on windows 7 does not use system tool

I would like ido-find-file to open pdf files with the default programm on Win7. I am aware of ido-default-file-method but there is no customization option that would allow that behaviour.
I solved the problem using the excelent openwith library.
https://bitbucket.org/jpkotta/openwith/overview

Is there any way of making windows reload a driver without reboot?

I was wondering - how do windows driver developers test themselves?
Lets' say I'm debugging a nasty problem in a driver I wrote. I want to be able to constantly add traces and logs, modify small parts of code, etc.
Each time I build a version of my driver and get a .sys file I want to deploy on a test-machine, and have a look at a tool like dbgview to understand what's happening.
AFAIK, in order for the modifications in code to take place, the only way is to reboot the test server.
This is awful! This means I have to wait a long time between making a minor adjustment in code and being.
Is this really the case? Is there no way of telling windows to dynamically reload my driver?
If not - how do windows driver developers work?? Do they constantly reboot their testing servers in order to see if things worked for them?
We are using virtual machines to test and debug drivers. Reverting to snapshot is much faster then rebooting and gives you always the same environment.
Also you can stop and replace your driver if it supports unloading: disable device in device manager or stop the driver using sc stop service_name.
You can also disable/enable host controller in Device Manager.
This does the trick for me:
devcon disable <driver>
devcon enable <driver>
Devcon download here: http://support.microsoft.com/kb/311272

Registering Windows Programs to Installed Programs List

As you know, Windows has a "Add/Remove Programs" system in the Control Panel.
Let's say I am preparing an installer and I want to register my program to list of installed programs and want it to be uninstallable from "Add/Remove Programs"?
Which protocols should I use. Any tutorials or docs about registering programs to that list?
I am coding with python and I can use WMI (Windows Management Instrument) or Win32 API. IMHO, it is done with Registry keys but I am not sure with it.
I also want to execute an uninstaller upon the Uninstallation to remove installed files. Any related docs or tutorials are highly appreciated. Thanks.
As stated on IRC:
"Windows keeps its uninstall information in the registry"
Its in HLLM\Software\Microsoft\Windows\CurrentVersion\uninstall\ keys.
You need a few things from the Win32 API, but I belive there's a fair amount of Python support for the win32 API.
Basically, a key in ...\Uninstall\ with a unique name (like "MyApp") with a few special values stashed in there. Add/Remove programs looks through there.
Its pretty self-explanatory.
If you are developing for Windows platform I think using Windows Installer from Microsoft won't be a problem.
You can check documentation of Windows Installer from Microsoft.com Windows Installer Page
Inno Setup is open source so perhaps you can get some ideas from that.

Automating driver installation on Windows XP

I have a sound card driver and I need to automate the installation of it on windows. Is there any way to achieve this.
This is a question for Server Fault, but many driver install files offer switches that can be used for a silent or unattended install. You could run the program with the /? switch or contact the device manufacturer for more information. Once you have that information, you could schedule the command using Scheduled Tasks in XP or the registry (RunOnce key).
Actually you probably want to read the driver installation section on msdn. (For I am not sure what you mean by "automating".)
This question should be asked at server fault.
Anyways, I assume you mean to want it to be installed with your OS.
One way is to slipstream the driver into your Windows OS Installer.
A good guide is:
Using Nlite (Simple) :
http://www.nliteos.com/
or
(Advanced)
http://unattended.msfn.org/unattended.xp
If not please specify the situation.
nLite (http://www.nliteos.com/) should have the solution you need.

Resources