Sign in to follow this  
Followers 0
rklingaman

Windows 7 error on script

6 posts in this topic

First time poster here but been using the program and it has been wonderful in automating tasks for end users that have trouble.

The latest project that I completed was one for Windows Vista and Windows 7. It will take an exported WLAN profile that has been compiled within the .exe and import it into windows. It has worked great in automating the setup of a wireless network with one little bug that really isn't a bug. After running my .exe on windows 7 it comes up with an error that is new to windows 7 and says that my program may not have installed correctly (even though everything works just fine). I just disregard that error by saying it did install correctly.

Not sure what it is about my script that makes that come up. I haven't ran many of the .exe i have created on windows 7 so I'm not sure if its a general error or just related to this script.

Here is my script:

DirCreate ("C:\Carroll HaloNet")

FileInstall("C:\Intel WiFi-HaloNet.xml", "C:\Carroll HaloNet\Intel WiFi-HaloNet.xml", 1)

run("netsh wlan delete profile HaloNet")

run('netsh wlan add profile filename="C:\Carroll HaloNet\Intel Wifi-HaloNet.xml"')

Share this post


Link to post
Share on other sites



It's not necessarily an AutoIt specific or Windows 7 specific issue-

http://blogs.msdn.com/astebner/archive/2007/05/17/2705372.aspx

http://stackoverflow.com/questions/1069135/this-program-might-not-have-installed-correctly-message-in-windows-7-rc

Share this post


Link to post
Share on other sites

Yeah I didn't figure it was anything specific to AutoIT or any real problem with Windows 7. I just need to figure out how to fix my .exe to avoid that pop up.

Share this post


Link to post
Share on other sites

From http://msdn.microsoft.com/en-us/library/bb756937.aspx:

Excluding Programs from PCA

... The best option to exclude a program from PCA is to include, with the program, an application manifest with run level (either Administrator or as limited users) marking for UAC. This marking means the program is tested to work under UAC (and Windows Vista and Windows Server 2008). PCA checks for this manifest and will exclude the program. This process applies for both installer and regular programs.

Another option to exclude applications from PCA is to add the list of executable files with full path under the following registry key: HKEY_LOCAL_MACHINE\ Software\Microsoft\Windows NT\CurrentVersion\Compatibility Assistant. The value name is ExecutablesToExclude, which is type REG_MULTI_SZ.

PCA automatically excludes programs running from network locations and programs containing fixes applied to them in the application compatibility databases.

A group policy setting is provided to disable PCA for all programs if desired. The name of the policy is Turn Off Program Compatibility Assistant. It can be found under Administrative Templates\Windows Components\Application Compatibility in the group policy editor (gpedit.msc).

There are also individual policies to turn off specific scenarios. These policies are available under Administrative Templates\System\Troubleshooting and Diagnostics\Application Compatibility Diagnostics in the group policy editor.

Share this post


Link to post
Share on other sites

Is there a way to fix this issue, using autoit?

Share this post


Link to post
Share on other sites

Is there a way to fix this issue, using autoit?

Run the app elevated using RunAs? You should really plan on only using files outside of the protected areas, such as the root of C where it seems you are working. A place I like to put stuff is C:\Users\Public.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0