Jump to content

Sin_of_Nature

Member
  • Posts

    10
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    country-ZZ

About Sin_of_Nature

Sin_of_Nature's Achievements

2

Reputation

  1. 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
  2. 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. kToolv1.2d_unoffical.zip
  3. Hi andee, You still want the code? I havent added the win 7 bit mentioned above but other than thatm it works ok. Sin
  4. 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. 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
  5. 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. 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
  6. Hi, No, it was on our standard PC Build (office, codecs, flash player...etc). We do have Nero 6.6.10 on all our PC's though, would this make a difference? I'll try it on a fresh windows and get back to you. Iain
  7. Windows XP SP2 Tried with Anti-vir & McAfee anti-virus sotware 1. Start by double clicking WPI.hta 2. Added IZArc in Config with the following settings: Command1 = %wpipath%\Install\IZArc\IZArc_Setup.exe /SP- /SILENT /NORESTART Command2 = %wpipath%\Install\IZArc\IZArcCL.exe /SP /SILENT /NORESTART Registy After = "%wpipath%\Install\IZarc\CU.reg" 3. Clicking Begin Install to start installing software. Can definitely confirm its when WPI exits as tried adding a 2nd program and its not per program but when WPI closes. //--------------------------------------------------------------------------------------------- // Reference ... prog[0] won't be used. It's just an example. // Look in program.js to see explanation of these properties. //--------------------------------------------------------------------------------------------- // pn=0; // start value for prog numbering // prog[pn]=['ProgramName']; // ordr[pn]=[0]; // desc[pn]=['Description']; // uid[pn]=['APP1']; // dflt[pn]=['no']; // cat[pn]=['Application Category']; // forc[pn]=['false']; // configs[pn]=['List of configs to be auto checked. Comma seperated']; // deps[pn]=[]; // excl[pn]=[]; // cond[pn]=['Javascript Conditional Statement']; // gcond[pn]=['Javascript Conditional Statement to gray item']; // regb[pn]=['Registry Key Path']; // cmd1[pn]=['CommandLine 1']; // cmd2[pn]=['CommandLine 2']; // cmd3[pn]=['CommandLine 3']; // cmd4[pn]=['CommandLine 4']; // cmd5[pn]=['CommandLine 5']; // cmd6[pn]=['CommandLine 6']; // cmd7[pn]=['CommandLine 7']; // cmd8[pn]=['CommandLine 8']; // cmd9[pn]=['CommandLine 9']; // cmd10[pn]=['CommandLine 10']; // rega[pn]=['Registry Key Path']; // picf[pn]=['Picture File']; // picw[pn]=['Width']; // pich[pn]=['Height']; // textl[pn]=['Text Location']; // pn++; //--------------------------------------------------------------------------------------------- // Your programs here ... //--------------------------------------------------------------------------------------------- pn=1; prog[pn]=['IZarc 3.81']; desc[pn]=['IZArc is the ultimate freeware archive utility supporting many archive formats like: 7-ZIP, A, ACE, ARC, ARJ, B64, BH, BIN, BZ2, BZA, C2D, CAB, CDI, CPIO, DEB, ENC, GCA, GZ, GZA, HA, IMG, ISO, JAR, LHA, LIB, LZH, MDF, MBF, MIM, NRG, PAK, PDI, PK3, RAR, RPM, TAR, TAZ, TBZ, TGZ, TZ, UUE, WAR, XXE, YZ1, Z, ZIP, ZOO.']; uid[pn]=['IZARC881']; dflt[pn]=['yes']; cat[pn]=['Applications']; forc[pn]=['no']; cmd1[pn]=['%wpipath%\\Install\\IZArc\\IZArc_Setup.exe /SP- /SILENT /NORESTART']; cmd2[pn]=['%wpipath%\\Install\\IZArc\\IZArcCL.exe /SP /SILENT /NORESTART']; rega[pn]=['"%wpipath%\\Install\\IZarc\\CU.reg"']; pn++; //--------------------------------------------------------------------------------------------- // End of program definitions ... //--------------------------------------------------------------------------------------------- Hope this helps
  8. I too get this exact error. Was about to post the same message as you. Its seems like when its finished and is closing WPI it appears. Any idea how to get rid of this? Sin
  9. Where is the cache folder you speak of? I need to grab a few of the downloaded patches so I can merge them with the main office software. :-)
  10. Odd, does not seem to be all the patches. This is what I downloaded today using Windows Update. I unrared the file and then select Windows Downloader as the program to open it (UL file). Was that correct? Downloading Update for Office 2003 (KB907417) (update 1 of 15)... done! Downloading Update for InfoPath 2003 (KB920103) (update 2 of 15)... done! Downloading Security Update for Publisher 2003 (KB894542) (update 3 of 15)... done! Downloading Update for Office 2003 (KB923097) (update 4 of 15)... done! Downloading Update for Office 2003 (KB919029) (update 5 of 15)... done! Downloading Security Update for Office 2003 (KB924424) (update 6 of 15)... done! Downloading Security Update for Outlook 2003 (KB924085) (update 7 of 15)... done! Downloading Security Update for Office 2003 (KB920813) (update 8 of 15)... done! Downloading Update for Office 2003 (KB925251) (update 9 of 15)... done! Downloading Security Update for Word 2003 (KB934181) (update 10 of 15)... done! Downloading Security Update for Office 2003 (KB934180) (update 11 of 15)... done! Downloading Update for PowerPoint 2003 (KB933669) (update 12 of 15)... done! Downloading Security Update for Excel 2003 (KB936507) (update 13 of 15)... done! Downloading Update for Outlook 2003 Junk Email Filter (KB936557) (update 14 of 15)... done! Downloading Security Update for Office 2003 (KB914455) (update 15 of 15)... done! The downloader missed KB923097, KB894542 (Publisher), KB919029, KB925251 and some others. 6 in totoal are missing. Does anyone know how I can get hold of these without using Windows Update (or use Windows Update and tell me where they are stored)? I seem to go round in circles finding out on the Office site. Nice program by the way. Iain
×
×
  • Create New...