Jump to content

mamba

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

About mamba

mamba's Achievements

0

Reputation

  1. As zorphnog has pointed out: - call MSHTA.EXE with the complete path to your HTA-file - It may be nessessary to use double backslashes in the path when run from a script: "mshta.exe x:\\hta-files\\hta-file1.hta" - Just try it
  2. My first plan was using HTA for building a menu for our automated server installation. But I am not a coder and the syntax of activex confused me. I found out that version 3 of autoit supports building graphical applications. So I tried that and found out that as long as I do not try to use pictures in my autoit-graphical-programs they work fine. Just the plain EXE and your done. I inserted support for the WSH, ADO and HTA using BUILDOPTIONALCOMPONENTS.VBS. Since I want to access a database (SQL server or MDB file) I had to program database access functions in VBS to compensate Autoits lack of DB support. Very dirty solution (and a bit sad that I once again managed to get around learning VB, VC or maybe something more modern). I did not manage to get the MDB file support working under WinPE but SQL support is enough. Your initial question was to use all your created Autoit scripts in WinPE. I don't see any problem. It have Autoit scripts on my disc and on a network share I conncet to. It works as desired. Do you get error messages? Or what's the problem?
  3. You could use a Microsoft mechanisms for that behaviour. You could start die WPI.CMD from the CMDLINES.TXT. That script is run before the last reboot of the GUI-part of the Windows installation. Where to put the CMDLINES.TXT? Put it in the folder "I386\$OEM$" for network-based installtions and for CDROM-based installations it should be in the root, if I am not wrong (eg. \$OEM$). The first entry in that script should be "[COMMANDS]" without doublequotes. The following entries are calls to your scripts. They are executed in the security cotext "system". You could start a script after the last reboot of the GUI-based installation of Windows, if you have defined it in the UNATTEND.TXT (or WINNT.SIF) in the section "[GUIRUNONCE]". If you add "Adminautologon=yes" and "Autologon=1" to the UNATTEND.TXT (or WINNT.SIF) your GUIRUNONCE-scripts will be run in the context of the administrator right before he logs in. These suggestions are one of many other ways (eg. SVCPACK.INF and so on). But I am dealing with Win2k here - and so I have lesser possibilities than WinXP and W2k3 offers.
  4. These options do not help for what I have in mind. Setting the "FORC[PN]" attribute for one entry will install this entry. But my idea is to have several applications (entries) from which the user has to choose minumum one. If he does not choose any, he should get a popup window and the screen remains still the same (so he can choose one or more entries this time). I just want to force the installation of one application (entry) of many. Since I do not know which application the user will choose, I cannot set the "forc[pn]" attribute.
  5. Hi, after looking at the code of several of the scripts, i have to give up. What I have in mind is to force the user to choose one entry (application). The current version does nothing, if the user hits the install-button after deselecting all entries. Its ok, if he does not like the ofered software, but I want him to get a popup that he has to choose minimum one entry. Can somebody give me a hint? If I understood it right, pressing the install-button leads to the function "CreateFile" with argument "false" which is located in script "wpiscripts\generate.js". But I am stuck in reading and understanding the code. So, first of all, I do not really know where to put extra code and second, I do not know how to write that code in Java script. PS: Very impressive application. -- ciao mamba
×
×
  • Create New...