KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

VISTA SECURITY stopping kixforms.dll and wkix32,exe install.

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
MACE1
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 12 Oct 2004
Posts: 130
Location: Manchester UK

PostPosted: Wed Sep 05, 2007 11:44 am    Post subject: VISTA SECURITY stopping kixforms.dll and wkix32,exe install. Reply with quote

Starting to deploy VISTA on our network and encountered our first KIX headache. I have to manually copy kixforms and wkix32 into system32 in order to proceed as even when logged in as a local administrator, security stops the process until elevated to 'Administrator'.
Kiforms.net is ok as it uses a msi installer.
Unless I can get kixforms classic in a msi and wkix32 I am going to have 'fun' with vista.
I found I needed to disable the User Account Control first to get the script to attempt to run.
SHAUN ? Any chance of a MSI build of classic which also includes wkix32.exe to alleviate this or anyone know of a means of scripting an elevated privilage copy ?
Code:

;-----------------------------------------------------------------------------------------
;               Update and Registration of kixforms.dll, Kixforms.net & WKix32
;-----------------------------------------------------------------------------------------
Dim $Bin, $NET, $DLL,$EDITOR
$bin=READPROFILESTRING("%SCRIPTS%\logon.ini","TSKSTANDARD","bin")
$NET=READPROFILESTRING("%SCRIPTS%\logon.ini","TSKSTANDARD","net")
;------------------ Ensure wkix32.exe installed on local machine. ------------------------

If left(@PRODUCTTYPE,13) = "Windows Vista"
Dim $LUA
 $LUA = READVALUE  ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System","EnableLUA")
 If $LUA <> 0
  $ = WRITEVALUE ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System","EnableLUA", "0", "REG_DWORD")
  $ = Messagebox ("You are using windows VISTA for the first time"+@crlf+"on this network so the system Must Re-start !","RESTARTING %computername%",64,8)
  run 'shutdown -r -t 0'
 Endif
Endif

if not exist("%SystemRoot%\system32\wkix32.exe")
    copy $bin + 'wkix32.exe' '%SystemRoot%\system32\' ;<Stopped in VISTA
else
    if getfileversion($bin + 'wkix32.exe') <> getfileversion('%SystemRoot%\system32\wkix32.exe')
        copy $bin + 'wkix32.exe' '%SystemRoot%\system32\' ;<Stopped in VISTA

    endif
endif
;------------------ Register .kix as an openable and editable class. ---------------------
if exist("%SystemRoot%\system32\wkix32.exe")
 $ = WRITEVALUE ("HKEY_CLASSES_ROOT\.KX", "", "KX_auto_file", "REG_SZ")
 $ = WRITEVALUE ("HKEY_CLASSES_ROOT\.KIX", "", "KIX_auto_file", "REG_SZ")
 If KeyExist("HKEY_CLASSES_ROOT\Applications\ConTEXT.exe\shell\edit\command") = 1
  $EDITOR=READVALUE("HKEY_CLASSES_ROOT\Applications\ConTEXT.exe\shell\edit\command","")
 Else
  $EDITOR='%SystemRoot%\system32\notepad.exe "%1" '+"%*"
 Endif
 If INGROUP("administrators")=1
   $ = WRITEVALUE ("HKEY_CLASSES_ROOT\KIX_auto_file\shell\open\command", "", $EDITOR, "REG_SZ")
   $ = WRITEVALUE ("HKEY_CLASSES_ROOT\KIX_auto_file\shell\edit\command", "", $EDITOR, "REG_SZ")
 ELSE
   $ = WRITEVALUE ("HKEY_CLASSES_ROOT\KX_auto_file\shell\open\command", "", '%SystemRoot%\system32\wkix32.exe "%1" '+"%*", "REG_SZ")
   $ = WRITEVALUE ("HKEY_CLASSES_ROOT\KIX_auto_file\shell\open\command", "", '%SystemRoot%\system32\wkix32.exe "%1" '+"%*", "REG_SZ")
   $ = WRITEVALUE ("HKEY_CLASSES_ROOT\KIX_auto_file\shell\edit\command", "", $EDITOR, "REG_SZ")
 ENDIF
Endif
;-------------------- Ensure KIXforms V2 installed on local machine. ---------------------
if not exist("%SystemRoot%\system32\kixforms.dll")
    copy $bin + 'kixforms.dll' '%SystemRoot%\system32\' ;<Stopped in VISTA

else
    if getfileversion($bin + 'kixforms.dll') <> getfileversion('%SystemRoot%\system32\kixforms.dll') or
       (getfileversion($bin + 'kixforms.dll') = getfileversion('%SystemRoot%\system32\kixforms.dll') and
       val(getfileversion($bin + 'kixforms.dll', "SpecialBuild")) > val(getfileversion('%SystemRoot%\system32\kixforms.dll', "SpecialBuild")) )
        copy $bin + 'kixforms.dll' '%SystemRoot%\system32\' ;<Stopped in VISTA

    endif
endif
$system = createobject("KiXtart.System")
if @error
    shell 'regsvr32 /s kixforms.dll' ;<Possibly Stopped in VISTA

    $system = createobject("KiXtart.System")
    if @error
        $_ = messagebox('You may not be a local administrator, make sure that you have appropriate rights on your system',
                        'Registration of Kixforms.dll failed - CONTACT AN ADMINISTRATOR IMMEDIATELY !',4112)
        quit 1
    endif
endif
;----------------------Ensure Kixforms.Net installed on local machine --------------------
if not exist("%SystemRoot%\system32\kixforms.system.dll")
 If Exist ($bin + 'Kixforms_net.msi')
  shell "%systemroot%\system32\msiexec /i "+ $bin + 'KiXforms_net.msi /norestart /quiet /lexv %windir%\system32\kixforms.system.txt'
  if not exist("%SystemRoot%\system32\kixforms.system.dll")
   $ = Messagebox("KIXFORMS.NET could not install/update."+chr(10)+"Please Contact the ADMINISTRATOR","SEVERE ERROR",4112)
   Quit 1
  EndIf
 EndIf
else
 $DLL=getfileversion("%SystemRoot%\system32\kixforms.system.dll")
 If $DLL <> $NET
  If Exist($bin + 'Kixforms_net.msi'); Compare Version to logon.ini
   shell "%systemroot%\system32\msiexec /i "+ $bin + 'KiXforms_net.msi /norestart /quiet /lexv %windir%\system32\kixforms.system.txt'
   if not exist("%SystemRoot%\system32\kixforms.system.dll")
    $ = Messagebox("KIXFORMS.NET could not install/update."+chr(10)+"Please Contact the ADMINISTRATOR","SEVERE ERROR",4112)
    Quit 1
   Else
     $DLL=getfileversion("%SystemRoot%\system32\kixforms.system.dll")
     ? "Kixform.Net Version "+$DLL+" now installed."
   EndIf
  Endif
 Endif
Endif

________
Harley-Davidson Model 11


Last edited by MACE1 on Fri Feb 18, 2011 5:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Sep 05, 2007 5:24 pm    Post subject: Reply with quote

I will try creating a special classic msi that includes wkix32.exe - which version of classic and wkix32 you want to use ?
Back to top
View user's profile Send private message
MACE1
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 12 Oct 2004
Posts: 130
Location: Manchester UK

PostPosted: Thu Oct 04, 2007 11:10 pm    Post subject: Reply with quote

Sorry for the delay, I've been swamped with other things...

I think I am up to date with 4.53.0.0 and the latest (Non - Beta) kixforms and kixforms.net.

Also Discovered that XP64 has many similarities in the security imposed in system areas. Even has ICACLE.exe like VISTA.

Thinking aloud, a combined WKIX32.exe, KixForms Classic and Even .Net would be one Supercharged Deployment !!

FYI: We have some MEGA X64 machines yet under WOW Kix runs very slowly. On the Same Dual Boot Test machine it takes 150%+ longer in Vista64 than XPP32 to run the Logon script, particularly in sections which read the registry.
________
Alaska Dispensary
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group