MSFN Forum: kTool (just another software selector) - MSFN Forum

Jump to content


  • 8 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • You cannot start a new topic
  • You cannot reply to this topic

kTool (just another software selector) Rate Topic: ***** 1 Votes

#121 User is offline   testazzo 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 24-March 06

Posted 04 December 2007 - 11:30 AM

here is the source .. good work

(added FontType in config)

Really easy to custmize

:hello:

Attached File(s)




#122 User is offline   Lolita 

  • Member
  • PipPip
  • Group: Members
  • Posts: 111
  • Joined: 21-August 04

Posted 08 March 2008 - 05:35 AM

Hello,
i have mui.cmd file in $OEM$ on my cd
file contains
@echo off
title mui
@echo on
@echo installing MUI
".\mui\muisetup.exe" /i 0405 /d 0405 /l /f /r /s
pause
then i have this
[Config]
Append =..

[Czech mui]
context = Installing Czech mui
runwait = mui.cmd
in my ktool config file and i'm starting ktool with ktool.cmd from cmdlines.txt. Ktool.cmd contains
cd ktool
 kTool.exe config/cmdlines_install.ini
, but mui installation never starts.

I have tried placing mui.cmd (notice pause at the end) to $oem$, cdroot, $oem$/ktool $oem$/ktool/config but it still don't start

can you help me please?

This post has been edited by Lolita: 08 March 2008 - 05:45 AM


#123 User is offline   Devil_Code 

  • Group: Members
  • Posts: 2
  • Joined: 02-March 08

Posted 09 March 2008 - 05:37 AM

View Posttestazzo, on Dec 4 2007, 12:30 PM, said:

here is the source .. good work

(added FontType in config)

Really easy to custmize

:hello:

Error Missing Separetor at line 1003

#124 User is offline   robotnik 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 08-September 08

Posted 23 September 2008 - 10:53 AM

This app rocks!! The only thing i would change is the option to leave the program running after the installation is done. Other than that it's perfect!

#125 User is offline   arjanv 

  • Junior
  • Pip
  • Group: Members
  • Posts: 72
  • Joined: 02-April 04

Posted 13 November 2008 - 09:52 AM

hi,

can anyone make this work for Windows Vista.
I've used this tool for windows xp and it work perfect, but now i looking for a simple installer for windows vista.

anyone can help me?

#126 User is offline   zhietyou 

  • Group: Members
  • Posts: 1
  • Joined: 01-November 08

Posted 04 December 2008 - 04:17 AM

ellow guys..
im nooby hear
can anyone post a step by step guide how to use this tools?

tnx
really a big help

#127 User is offline   Sin_of_Nature 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 05-April 06

Posted 25 March 2009 - 09:38 AM

For anyone trying to find updated version of this, I used the following link:

http://www.msfn.org/board/index.php?act=at...&tid=28393#

You need to be logged in to download it, but there's a version 1.2c! (actually says 1.1c when you run it). Some nice little niggles removed. Excellent tool, even in 2009. :thumbup

Oh, should say that the link is for the source code. 1 slight error is there's no space between & and the _ on line 1003. Compiled fine in Auto-it apart from that.

Sin

This post has been edited by Sin_of_Nature: 25 March 2009 - 09:42 AM


#128 User is offline   testtrytest 

  • Group: Members
  • Posts: 5
  • Joined: 08-April 09

Posted 23 April 2009 - 09:45 AM

Exactly what I was looking for. I'll test tonight nice and simple.

This post has been edited by testtrytest: 23 April 2009 - 09:46 AM


#129 User is offline   testtrytest 

  • Group: Members
  • Posts: 5
  • Joined: 08-April 09

Posted 24 April 2009 - 12:18 PM

I am a bit confused, if I compile the lastest source I have an error (Something saying -1 not existing), I am not a big user of Autoit but apparently by removing the line 65:
Opt("RunErrorsFatal"  , 0)


I don't have anymore the problem, does anyone have the same problem? Is this line important?

#130 User is offline   larchen 

  • Group: Members
  • Posts: 1
  • Joined: 03-August 09

Posted 03 August 2009 - 02:19 PM

View Posttesttrytest, on Apr 24 2009, 01:18 PM, said:

I am a bit confused, if I compile the lastest source I have an error (Something saying -1 not existing), I am not a big user of Autoit but apparently by removing the line 65:
Opt("RunErrorsFatal"  , 0)


I don't have anymore the problem, does anyone have the same problem? Is this line important?


I had the same problem and looked it up. The "RunErrorsFatal"-command was removed from AutoIt v32120. This means you must remove this line running AutoIt v32120 and later

#131 User is offline   Sin_of_Nature 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 05-April 06

Posted 05 August 2009 - 05:46 AM

One thing I find strange with latest version. It fire off the software in the order of the INI file NOT the order you specify in the Profiles list

For example, I put my software in Alphabetic order in the INI file (for ease of finding it).

[.Net Framework 2.0 SP1]
context = .Net Framework 2.0 SP1
description = Installing .Net 2.0
runwait = "%wpipath%\\Install\\Net Framework 2.0\\SP1\\NetFx20SP1_x86.exe" /norestart /qb

[Disable Shutdown Script]
context = Disable Shutdown Script
description = Disable Shutdown Script on PCs
runwait = "%wpipath%\\Install\\WKIX32.EXE" -i "%wpipath%\\Install\\Tweaks\\Shutdown_Disable.kix"

[Display Settings]
context = Display Settings
description = Sets Display Settings for Lab PCs
runwait = "%wpipath%\\Install\\WKIX32.EXE" -i "%wpipath%\\Install\\Tweaks\\DisplaySettings.kix"


However, In my profiles I have:

[Profiles]
Default=
Computer=|Display Settings|Disable Shutdown Script|.Net Framework 2.0 SP1


Even though .Net Framework 2.0 SP1 is listed last, it actually installs first as its 1st in the INI file. That definitely needs a bit of a code change. :blink:

Just looking at the code now, as I need the software to install in a certain order.

[update]
I've updated the code so it installs in the order specified in the Profiles list. Anyone wanting the code/binary, just PM me.

Sin

This post has been edited by Sin_of_Nature: 06 August 2009 - 01:57 AM


#132 User is offline   andee_damon 

  • Group: Members
  • Posts: 4
  • Joined: 18-January 10

Posted 18 January 2010 - 10:11 AM

Hi anyone knows how ktool can be recognized by windows seven?

P.S.: Hi Sin, can you send me the last code you have? I can't PM you.



I Think I found the part of the code to include Windows Seven but I'm not sure:

line 175:
;done
Func ReturnOSVersion () ;Get OS version to readable format
Select
Case $VER = "WIN_XP"
$OS = "Windows XP"
Case $VER = "WIN_2000"
$OS = "Windows 2000"
Case $VER = "WIN_98"
$OS = "Windows 98"
Case $VER = "WIN_ME"
$OS = "Windows ME"
Case $VER = "WIN_95"
$OS = "Windows 95"
Case $VER = "WIN_NT4"
$OS = "Windows NT4"
EndSelect
EndFunc ;ReturnOSVersion


line 584:
;win other
Func AutoLogon () ;Write autologon information to registry
If $Ver = "WIN_XP" Or $Ver = "WIN_2000" Or $Ver = "WIN_NT4" Then
RegWrite("HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\", "DefaultUserName", "REG_SZ", @UserName)
$Password = InputBox("Password", "Enter password for autologon" & @CR & $RebootCount & " restart(s) required", "", "*")
RegWrite("HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\", "DefaultPassword", "REG_SZ", $Password)
RegWrite("HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\", "AutoAdminLogon", "REG_SZ", "1")
RegWrite("HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\", "AutoLogonCount", "REG_DWORD", $RebootCount)
RegWrite("HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\", "DefaultDomainName", "REG_SZ", @LogonDomain)
EndIf
If $Ver = "WIN_98" Or $Ver = "WIN_95" Or $Ver = "WIN_ME" Then
MsgBox (0,"", "Autologon currently not avialable for " & $OS )
EndIf
EndFunc ;AutoLogon


Anyone can help please??? :unsure:

This post has been edited by andee_damon: 18 January 2010 - 10:29 AM


#133 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,219
  • Joined: 09-September 01
  • OS:Windows RT
  • Country: Country Flag

Posted 18 January 2010 - 11:16 AM

The ReturnOSVersion function should contain:
Case $VER = "WIN_7"
$OS = "Windows 7"
Case $VER = "WIN_VISTA"
$OS = "Windows Vista"
Case $VER = "WIN_XP" 
$OS = "Windows XP"
Case $VER = "WIN_2000" 
$OS = "Windows 2000"
Case $VER = "WIN_98" 
$OS = "Windows 98"
Case $VER = "WIN_ME" 
$OS = "Windows ME"
Case $VER = "WIN_95" 
$OS = "Windows 95"
Case $VER = "WIN_NT4" 
$OS = "Windows NT4"


What you do with the new responses in that source is your own design. Note you can get the version simply by returning the @OSVersion macro:

MsgBox (0, "OS Version", @OSVersion)

For example:
Posted Image

#134 User is offline   andee_damon 

  • Group: Members
  • Posts: 4
  • Joined: 18-January 10

Posted 18 January 2010 - 10:31 PM

Thanks very much cluberti! I'll try that

#135 User is offline   Sin_of_Nature 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 05-April 06

Posted 25 January 2010 - 08:12 AM

Hi andee,

You still want the code? I havent added the win 7 bit mentioned above but other than thatm it works ok.

Sin

#136 User is offline   andee_damon 

  • Group: Members
  • Posts: 4
  • Joined: 18-January 10

Posted 25 January 2010 - 09:38 AM

Hi Sin! yes, I still want that code, can you post it here? or you can send me an email?
I added the Win7 line to the 1.2c version, but I haven't test it yet.

Andee

#137 User is offline   Sin_of_Nature 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 05-April 06

Posted 25 January 2010 - 09:59 AM

Heres the code. Certainly not optimised (slower reading in file than 1.2c). Wont let me upload exe as its larger than 200k

Ignore the line "; THIS IS WHERE IT GOES ALL WRONG!", it was were I added the 'install in order listed' code. :)

Attached File(s)


This post has been edited by Sin_of_Nature: 26 January 2010 - 07:26 AM


#138 User is offline   Necros 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 11-August 05

Posted 05 March 2010 - 10:01 AM

I'm working on KTool 1.2d to handle ZIP or 7z files.

My software database is on a external hard drive, and I may use it on untrusted maybe infected computers. Therefore, I'm storing each driver or software in a zip file to protect my files against viruses.

I'm about to test some new instructions in INI file to use 7Za.exe to unzip a software in a temp folder, and then run an EXE or MSI file.

Do you feel theses changes useful ?

This post has been edited by Necros: 07 March 2010 - 06:45 AM


#139 User is offline   Sin_of_Nature 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 05-April 06

Posted 24 June 2010 - 01:32 AM

Hi,

Not sure if you still use this, but the IsAdmin() function call does not work correctly under Vista and Windows 7.

Func CheckAdmin() ;Check if user has administrator rights
   If IsAdministrator()=0 Then
      If MsgBox (4,"","Administrator rights required. Continue?") = 7 then Exit
   EndIf
EndFunc   ;CheckAdmin

; Replacement function for IsAdmin
Func IsAdministrator($sUser = @UserName, $sCompName = ".")
    Local $aCall = DllCall("netapi32.dll", "long", "NetUserGetInfo", "wstr", $sCompName, "wstr", $sUser, "dword", 1, "ptr*", 0)
    If @error Or $aCall[0] Then Return SetError(1, 0, False)
    Local $fPrivAdmin = DllStructGetData(DllStructCreate("ptr;ptr;dword;dword;ptr;ptr;dword;ptr", $aCall[4]), 4) = 2
    DllCall("netapi32.dll", "long", "NetApiBufferFree", "ptr", $aCall[4])
    Return $fPrivAdmin
EndFunc  


The IsAdministrator was not written by me, some smart person on the AutoIt forum did. Works a treat though.

Zip function would be usefull. My next step to be able to adjust the install order (+ and - buttons) window so you can move applications up and down the install list.

Sin



View PostNecros, on 05 March 2010 - 10:01 AM, said:

I'm working on KTool 1.2d to handle ZIP or 7z files.

My software database is on a external hard drive, and I may use it on untrusted maybe infected computers. Therefore, I'm storing each driver or software in a zip file to protect my files against viruses.

I'm about to test some new instructions in INI file to use 7Za.exe to unzip a software in a temp folder, and then run an EXE or MSI file.

Do you feel theses changes useful ?

This post has been edited by Sin_of_Nature: 24 June 2010 - 01:51 AM


#140 User is offline   Volly 

  • Group: Members
  • Posts: 1
  • Joined: 07-September 11
  • OS:none specified
  • Country: Country Flag

Posted 12 October 2011 - 01:01 PM

I've taken up the reins in managing this fine tool. You can find my version of it and my tweaks here:
http://www.autoitscr...anagement-tool/

I plan to make many enhancements to it but if anyone wants to contribute by all means do.

Share this topic:


  • 8 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • You cannot start a new topic
  • You cannot reply to this topic

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



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