Jump to content
SLC

Deploy PPKG on Windows 10 (Upg PRO 2 ENT)

Recommended Posts

SLC

-English is not my native language-

Hello,

I'm trying to deploy a PPKG package on Windows 10, the achievement is to upgrade from Professionnal edition to Enterprise Edition trough Landesk Management Suite  : 

  • no user interaction
  • no admin rights

 

When using it manually (double click), it works.

Using autoIt, the application popup, which display in front of screen like UAC popup comes but neither ControlClick, MouseClick or other function works

 

Here's the code :

#RequireAdmin
DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1) ; This disables 32bit applications from being redirected to syswow64 instead of system32 by default ;
AutoItSetOption('MouseCoordMode', 0)
run("c:\windows\system32\provtool.exe C:\TEST\WIN10PPKG\Migration_W10_Pro_vers_W10_Enterprise.ppkg", "", @SW_MAXIMIZE)
Sleep(10)
ControlClick( "[CLASS:DirectUIHWND; INSTANCE:1]", 442, 344 )

 

Here's it autoInfo : 

>>>> Window <<<<
Title:    Ce package provient-il d'une source de confiance ?
Class:    Shell_SystemDialog
Position:    500, 314
Size:    680, 382
Style:    0x96000000
ExStyle:    0x00040000
Handle:    0x00000000002005F0

>>>> Control <<<<
Class:    DirectUIHWND
Instance:    1
ClassnameNN:    DirectUIHWND1
Name:    
Advanced (Class):    [CLASS:DirectUIHWND; INSTANCE:1]
ID:    
Text:    
Position:    0, 0
Size:    680, 382
ControlClick Coords:    448, 341
Style:    0x56000000
ExStyle:    0x00000000
Handle:    0x0000000000340482

>>>> Mouse <<<<
Position:    448, 341
Cursor ID:    0
Color:    0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
 

 

 

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

×