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

#21 User is offline   Francesco 

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

Posted 09 August 2012 - 04:15 AM

I already have all the code to recognize win8 but it's pretty pointless since like with vista and win7 nothing that requires reboots works.

In wmi.js it's
			if (Caption.indexOf("Windows 8") != -1)
				szOSVerCache="Win8";



and in wpi.hta and core.js it's

if (getOSver()=="XP" || getOSver()=="Vista" || getOSver()=="Win7" || || getOSver()=="Win8")


instead of
if (getOSver()=="XP" || getOSver()=="Vista" || getOSver()=="Win7")


This post has been edited by Francesco: 09 August 2012 - 04:17 AM



#22 User is offline   Kelsenellenelvian 

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

Posted 09 August 2012 - 04:37 AM

Just for the sake of completeness (Plus I know someone else will ask) I have added it to the next version.

#23 User is offline   ricktendo 

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

Posted 09 August 2012 - 06:47 AM

Posted Image

#24 User is offline   myselfidem 

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

Posted 09 August 2012 - 03:01 PM

It's possible to add the WinVer.vbs to WPI, because works fine to give informations ?

It seems some infos are missing inside WPI_Log.txt, like Windows version and Build number:

Result on Oracle VirtualBox

Quote

Fichier journal de l'installation WPI

Début de l'installation: jeudi 9 août 2012 13:43:18

Information WPI:
Version=8.5.4
Exécutable utilisé=true
Version d'Internet Explorer=9.0

Connexion Internet=false

Système d'exploitation
Système d'exploitation=Not found
ID Edition=Not found
Service Pack=1

Architecture
Nom de l'Architecture=GenuineIntel
Chaîne du Nom de l'Architecture=Intel® Core™ i5 CPU 650 @ 3.20GHz
ID Architecture=x86 Family 6 Model 37 Stepping 2
Nombre de Processeurs=1
MHz=3063
Type d'Architecture=x86
SysArch6432=NOT_DEFINED
Bits Architecture=32
64 Bits réel=false

Fichier Options=D:\wpi\UserFiles\useroptions.js
Fichier Configuration=D:\wpi\UserFiles\config.js
Fichier Réseau=D:\wpi\UserFiles\networkoptions.js
....


Also using WPI Information options: Computer tab: missing: Windows version, Build number, Language and Localization

Regards

*Edit: thanks to move this post if it is not in the good place but for Request thread!

This post has been edited by myselfidem: 09 August 2012 - 03:44 PM


#25 User is offline   Kelsenellenelvian 

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

Posted 09 August 2012 - 04:35 PM

WFM:

Operating System
Operating System=Win7
Edition ID=Not found
Service Pack=1

Architecture
Architecture Name=AuthenticAMD
Architecture Name String=AMD Phenom™ II X6 1100T Processor
Architecture ID=AMD64 Family 16 Model 10 Stepping 0
Number Of Processors=6
MHz=3300
Architecture Type=AMD64
SysArch6432=NOT_DEFINED
Architecture Bits=64
True 64 Bits=true

#26 User is offline   ricktendo 

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

Posted 09 August 2012 - 10:30 PM

You guys should check out the latest CCleaner, it does something to skip UAC warning using the task scheduler

Good luck

http://forum.pirifor...22

Found this also

http://maketecheasie...ions/2010/10/06

This post has been edited by ricktendo64: 09 August 2012 - 10:35 PM


#27 User is offline   myselfidem 

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

Posted 10 August 2012 - 04:45 AM

UAC is disabled on my computer and I have the same result!

#28 User is offline   Francesco 

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

Posted 10 August 2012 - 05:05 AM

View Postricktendo64, on 09 August 2012 - 10:30 PM, said:

You guys should check out the latest CCleaner, it does something to skip UAC warning using the task scheduler

Good luck

http://forum.pirifor...22

Found this also

http://maketecheasie...ions/2010/10/06


The startup task is actually the 2nd option in the pool.

#29 User is offline   Francesco 

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

Posted 10 August 2012 - 05:07 AM

View Postmyselfidem, on 10 August 2012 - 04:45 AM, said:

UAC is disabled on my computer and I have the same result!

Without this fix WPI reboots won't work on any os newer than XP.

#30 User is offline   myselfidem 

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

Posted 10 August 2012 - 05:10 AM

Thanks Francesco!

However, I see on the registry that the values about Windows are inside:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"CurrentVersion"="6.1"
"CurrentBuild"="7601"
"EditionID"="Ultimate"
"ProductName"="Windows 7 Ultimate"
"CurrentBuildNumber"="7601"
"CSDBuildNumber"="1130"
"CSDVersion"="Service Pack 1"



Regards

This post has been edited by myselfidem: 10 August 2012 - 05:34 AM


#31 User is offline   myselfidem 

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

Posted 10 August 2012 - 06:11 AM

Tested using the fix you gave inside core.js and installer.js , but the result using Oracle VM VirtualBox is the same.

WPI_Log.txt
Fichier journal de l'installation WPI

Début de l'installation: vendredi 10 août 2012 13:57:17

Information WPI:
   Version=8.5.4
   Exécutable utilisé=true
   Version d'Internet Explorer=9.0

   Connexion Internet=false

Système d'exploitation
   Système d'exploitation=Not found
   ID Edition=Not found
   Service Pack=1

Regards

This post has been edited by myselfidem: 10 August 2012 - 06:20 AM


#32 User is offline   myselfidem 

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

Posted 10 August 2012 - 12:29 PM

View PostFrancesco, on 09 August 2012 - 04:15 AM, said:


and in wpi.hta and core.js it's

if (getOSver()=="XP" || getOSver()=="Vista" || getOSver()=="Win7" || || getOSver()=="Win8")




When I made this changes there is errors, but not using: (using only one ||)

if (getOSver()=="XP" || getOSver()=="Vista" || getOSver()=="Win7" || getOSver()=="Win8")


Regards

#33 User is offline   Francesco 

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

Posted 11 August 2012 - 04:00 AM

The strings for windows server 2012 (and 2008R2) are missing among with all the server 2012 and win8 editions. Also there isn't any exposed function to use the edition in conditions (should be getOSeditionID).

This post has been edited by Francesco: 11 August 2012 - 07:39 AM


#34 User is offline   Kelsenellenelvian 

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

Posted 11 August 2012 - 04:28 AM

Its partial left over code from mritters days.

#35 User is offline   myselfidem 

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

Posted 21 August 2012 - 12:43 PM

I see there is no more WinVer.vbs

Here it is.

Attached File(s)



#36 User is offline   myselfidem 

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

Posted 28 August 2012 - 02:07 PM

View PostKelsenellenelvian, on 09 August 2012 - 04:35 PM, said:

WFM:

Operating System
Operating System=Win7
Edition ID=Not found
Service Pack=1

Architecture
Architecture Name=AuthenticAMD
Architecture Name String=AMD Phenom™ II X6 1100T Processor
Architecture ID=AMD64 Family 16 Model 10 Stepping 0
Number Of Processors=6
MHz=3300
Architecture Type=AMD64
SysArch6432=NOT_DEFINED
Architecture Bits=64
True 64 Bits=true

To obtain EditionID (Is CurrentBuildNumber, isn't it?), I made some changes inside:

wmi.js (adding at first)

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

        try
 {
      return WshShell.RegRead("HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\CurrentBuildNumber");
 }
 catch(ex1)
        { 
        } 
        return NOT_FOUND; 



Adding also inside: information.js

ConditionsGrid.addRow(gId++,'getOSeditionID()=="'+getOSeditionID()+'"');


Works fine for me:

WPI_Log.txt
Fichier journal de l'installation WPI

Début de l'installation: mardi 28 août 2012 19:27:30

Information WPI:
   Version=8.5.8
   Exécutable utilisé=true
   Version d'Internet Explorer=9.0

   Connexion Internet=true

Système d'exploitation
   Système d'exploitation=Windows 7 Ultimate
   Version du Système d'exploitation=6.1
   ID Edition=7601
   Service Pack=1



Ragards

This post has been edited by myselfidem: 28 August 2012 - 02:21 PM


#37 User is offline   Kelsenellenelvian 

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

Posted 29 August 2012 - 07:29 PM

View Postmyselfidem, on 28 August 2012 - 02:07 PM, said:

View PostKelsenellenelvian, on 09 August 2012 - 04:35 PM, said:

WFM:

Operating System
Operating System=Win7
Edition ID=Not found
Service Pack=1

Architecture
Architecture Name=AuthenticAMD
Architecture Name String=AMD Phenom™ II X6 1100T Processor
Architecture ID=AMD64 Family 16 Model 10 Stepping 0
Number Of Processors=6
MHz=3300
Architecture Type=AMD64
SysArch6432=NOT_DEFINED
Architecture Bits=64
True 64 Bits=true

To obtain EditionID (Is CurrentBuildNumber, isn't it?), I made some changes inside:

wmi.js (adding at first)

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

        try
{
      return WshShell.RegRead("HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\CurrentBuildNumber");
}
catch(ex1)
        { 
        } 
        return NOT_FOUND; 



Adding also inside: information.js

ConditionsGrid.addRow(gId++,'getOSeditionID()=="'+getOSeditionID()+'"');


Works fine for me:

WPI_Log.txt
Fichier journal de l'installation WPI

Début de l'installation: mardi 28 août 2012 19:27:30

Information WPI:
   Version=8.5.8
   Exécutable utilisé=true
   Version d'Internet Explorer=9.0

   Connexion Internet=true

Système d'exploitation
   Système d'exploitation=Windows 7 Ultimate
   Version du Système d'exploitation=6.1
   ID Edition=7601
   Service Pack=1



Ragards



CLOSE but not quite:
 


WPI information:
   Version=8.6.0
   Used launcher=true
   Internet Explorer version=8.0
   Internet Connection=true

Operating System
   Operating System Version=6.1
   Operating System=Win7
   OS Current Build=7601
   Edition ID=Ultimate Edition
   Service Pack=1




See what I have manged to do there? (You put me on the right track though!)



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