MSFN Forum: Please vote: Vista/Win7/Win8 UAC support poll - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Please vote: Vista/Win7/Win8 UAC support poll Disable UAC during install or remove the LoadDesktopBeforeInstall? Rate Topic: -----

Poll: Please vote: Vista/Win7/Win8 UAC support poll (15 member(s) have cast votes)

How to make WPI support UAC?

  1. Disable UAC before reboot and re-enable it after reboots (9 votes [60.00%])

    Percentage of vote: 60.00%

  2. Maintain UAC always on and remove the incompatible LoadDesktopBeforeInstall option (3 votes [20.00%])

    Percentage of vote: 20.00%

  3. I don't know, but I like turtles! (3 votes [20.00%])

    Percentage of vote: 20.00%

Vote Guests cannot vote

#1 User is offline   Francesco 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 394
  • Joined: 20-March 04

Posted 20 May 2012 - 12:05 PM

As title says. In case of the 2nd choice WPI will always launch with/after explorer.

This post has been edited by Francesco: 31 May 2012 - 05:42 AM



#2 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 May 2012 - 03:08 PM

If we can get WPI to disable\re-enable uac during install that would be super.

BTW Turtles are awesome!

#3 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 July 2012 - 12:38 PM

Any news on this?

#4 User is offline   chymax3m 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 17-January 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 August 2012 - 09:57 AM

Hi, found an interesting reg file which turns off the UAC, may be it will be useful for You:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000000


Using RegShot i traced tha to undo this change it is necessary to use this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000001

But there is one disadvantage: to make this tweak work it is necessary to reboot

This post has been edited by chymax3m: 06 August 2012 - 09:59 AM


#5 User is offline   Francesco 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 394
  • Joined: 20-March 04

Posted 06 August 2012 - 12:17 PM

View Postchymax3m, on 06 August 2012 - 09:57 AM, said:

Hi, found an interesting reg file which turns off the UAC, may be it will be useful for You:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000000


Using RegShot i traced tha to undo this change it is necessary to use this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000001

But there is one disadvantage: to make this tweak work it is necessary to reboot

I already figured out how to disable UAC and how to set a task on reboot but until people vote I'm not writing anything since both workarounds are extremely annoying.

#6 User is offline   chymax3m 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 17-January 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 August 2012 - 12:24 PM

OK then. I think it would be better to make it optional.

#7 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 August 2012 - 01:41 PM

Will you guys add support for getosver=Win8?

Why do you guys use XP/Vista/Win7, would it not be better to use 5.1/6.0/6.1/6.2 etc? (future proof)

#8 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 August 2012 - 03:45 PM

I really don't want to support 8.

As for the Winver it is mainly because we have always done it that way and it is better for the "Less technically" inclined...

#9 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 August 2012 - 11:55 PM

Would not take much to add Win8 support, since it pretty much runs same as it does on Win7

Also if you use 6.1.x/6.2.x/etc. it would allot be better, because you could also add service pack specific install support. For instance the Microsoft Camera Codec Pack is only compatible with Vista sp2 and not meant for Windows 8, would be nice if we could add these conditions in WPI

Quote

Installed OR (WindowsBuild >= 6002) Windows Vista Service Pack 2 or higher is required to install the Microsoft Camera Codec Pack.
NOT (VersionNT > 601) This version of the Microsoft Camera Codec Pack is not compatible with Windows 8 or Windows Server 2012. You can get the codec pack through Windows Update on Windows 8. The codec pack is not available for Windows Server 2012.


#10 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 August 2012 - 02:49 AM

We already have a spver:


function getSPver()
{
	position="wmi.js";
	whatfunc="getSPver()";

	if (szServicePackCache==NOT_FOUND) // this function is called often - get it once and cache the result
	{
		try
		{
			objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2");
			colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly);
			enumItems=new Enumerator(colItems);
			objItem=enumItems.item();

			szServicePackCache=objItem.ServicePackMajorVersion;
		}
		catch(ex)
		{
			var sp="";

			try
			{
				sp=WshShell.RegRead("HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\CSDVersion");
			}
			catch(ex)
			{ ; }

			if (sp != "")
			{
				szServicePackCache=sp.substr(sp.length-1,1);
			}
		}
	}

	return szServicePackCache;
}


As for the "5.1/6.0/6.1/6.2" IF You and francesco can just add it to the existing code fine. I am not going to tell the thousands and thousands out there that they have to change all of their osver to the 5.1/6.0/6.1/6.2. Only 5% or so of them will listen.

#11 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 August 2012 - 06:36 AM

Not change, if you can support both options would be nice

This MSI LaunchCondition:

Quote

Installed OR (WindowsBuild >= 6002) Windows Vista Service Pack 2 or higher is required to install the Microsoft Camera Codec Pack.
NOT (VersionNT > 601) This version of the Microsoft Camera Codec Pack is not compatible with Windows 8 or Windows Server 2012. You can get the codec pack through Windows Update on Windows 8. The codec pack is not available for Windows Server 2012.

In WPI could look like:
getOSver2()>="6.0.6002"&&getOSver2()<="6.1"


It would make WPI "future proof". You wont have to add a Win9/10/11 when/if another operating system comes out it will simply work, one would just have to increase the decimal point

This post has been edited by ricktendo64: 07 August 2012 - 09:58 AM


#12 User is offline   Francesco 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 394
  • Joined: 20-March 04

Posted 07 August 2012 - 06:46 AM

View Postricktendo64, on 07 August 2012 - 06:36 AM, said:

Not change, if you can support both options would be nice

This MSI LaunchCondition:

Quote

Installed OR (WindowsBuild >= 6002) Windows Vista Service Pack 2 or higher is required to install the Microsoft Camera Codec Pack.
NOT (VersionNT > 601) This version of the Microsoft Camera Codec Pack is not compatible with Windows 8 or Windows Server 2012. You can get the codec pack through Windows Update on Windows 8. The codec pack is not available for Windows Server 2012.

In WPI could look like:
getOSver2()>="6.0.6002"&&getOSver2()<"6.1"


It would make WPI "future proof". You wont have to add a Win9/10/11 when/if another operating system comes out it will simply work, one would just have to increase the decimal point


You can already read the windows version number from the registry (HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentVersion) also you can't compare versions as strings there's a function for that.

#13 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 August 2012 - 06:49 AM

That's the workaround I been using

Edit: (Vista sp2 to Win7 ENU condition)
RegKeyValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentVersion")=="6.0"&&RegKeyValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentBuild")>="6002"&&getOSlang()=="ENU"||RegKeyValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentVersion")=="6.1"&&getOSlang()=="ENU"

This post has been edited by ricktendo64: 08 August 2012 - 05:42 PM


#14 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 August 2012 - 05:23 PM

Rick & Francesco:

OK I will add support for 8 AND version #'s! BUT I need you guys to help add the code in so we can keep backwards compatability with the current getosver...

Rick I need the current style getosver info for win8.

#15 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 August 2012 - 05:39 PM

6.2.9200 is RTM, I think 6.2.9201 will be SP1, etc

Is that what you meant?

#16 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 August 2012 - 05:45 PM

Naw the Windows 8 code for this section here:

function getOSver()
{
	position="wmi.js";
	whatfunc="getOSver()";

	if (szOSVerCache==NOT_FOUND) // this function is called often - get it once and cache the result
	{
		var Caption;

		try
		{
			objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2");
			colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly);
			enumItems=new Enumerator(colItems);
			objItem=enumItems.item();

			Caption=objItem.Caption;

			if (Caption.indexOf("Windows 7") != -1)	
				szOSVerCache="Win7";
			if (Caption.indexOf("2008") != -1)
				szOSVerCache="08";
			if (Caption.indexOf("Vista") != -1)
				szOSVerCache="Vista";
			if (Caption.indexOf("2003") != -1)
				szOSVerCache="03";
			if (Caption.indexOf("XP") != -1)
				szOSVerCache="XP";
			if (Caption.indexOf("2000") != -1)
				szOSVerCache="2K";
		}
		catch(ex)
		{
			try
			{
				ver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\CurrentVersion");
			}
			catch(ex1)
			{
				try
				{
					ver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Version");
				}
				catch(ex2)
				{ ; }
			}
			if (ver=="5.0")
				szOSVerCache="2K";
			if (ver=="4.0")
				szOSVerCache="NT";
			if (ver=="Windows 98")
				szOSVerCache="98";
			if (ver=="Windows Millennium Edition")
				szOSVerCache="ME";
			if (ver=="Windows 95")
				szOSVerCache="95";
		}
	}

	return szOSVerCache;
}


This is the main part I need:

if (Caption.indexOf("Windows 7") != -1)

I have NO clue what MS is calling it internally.

This post has been edited by Kelsenellenelvian: 08 August 2012 - 05:46 PM


#17 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 August 2012 - 05:53 PM

Save the attachment as a .vbs and run from a cmd prompt in win8.

Post the displayed info here for me.

This post has been edited by Kelsenellenelvian: 09 August 2012 - 02:30 AM


#18 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 August 2012 - 08:31 PM

Gives error

C:\Users\<Username>\Downloads>cscript winver.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\<Username>\Downloads\winver.vbs(39, 1) Microsoft VBScript compilation error: Syntax error

This post has been edited by ricktendo64: 08 August 2012 - 08:32 PM


#19 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 09 August 2012 - 02:12 AM

Works fine for me on Windows 7, if I remove: & _

at this line:

 "Build Number    : " & objItem.BuildNumber & vbCrLf


#20 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 August 2012 - 02:31 AM

My bad:

(Verified this one works.)

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy