Jump to content

Dislocated Time

Member
  • Posts

    106
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Everything posted by Dislocated Time

  1. I suggest you repack it, because it automatically tries to connect to svc.iolo.com and no silent switches are available.
  2. I had a few problems like that before. I'm supposing that you added the driver to your winnt.sif. You have to be very careful to read the MS article on this very carefully. You have a number of possibilities here. The media (CD/DVD) that you used for the unattended app might be the problem (scratched, dirty or the drive just doesn't find the media appetizing enough). This happens albeit rather rarely. A second possibility that happens more often is that the operating system might be going through some form of search routine for the correct driver. Also, if the driver supports 1000 different types of drives and it goes through a hardware search, that also might take quite some time. In this case, editing the *.inf file might help. I also get those kinds of problems when Windows is almost finished and starts searching for network hardware. There also might be a bios setup that is affecting your installation. Check all that and you should find a solution.
  3. I'm pretty new to visual basic... I've done script / batch writing in AutoIt and MSDOS. I've written a macro in Winword 2003 that works manually and I want it to be executed when a user executes SaveAs. The macro has to be executed exactly between the time that the person has entered the filename and the closing of the file. I'll explain this in more detail: The footer of the Winword file I am working on contains a table with fields linked to custom docProperties: Machine number, Filename and Version. In our template, these custom docProperties just have xxx placeholders in them. We usually take the time to enter the machine number, version and file type in the docProperties before we close the file because certain fields in the document are linked to the docProperties. The filename that we use to save the file itself already consists of the filetype, machine number and version. I want to save some of our colleagues some time by generating the footer automatically. I did manage to get all this done in a macro HOWEVER the macro works fine in my file when I execute it manually, but I want it to be executed when the user either changes the filename or saves it for the very first time, so that it really is generated automatically, every time someone changes the name of the file or saves a new file. Can someone explain shortly or in depth, how to execute a macro during the saving of a file? I'd really appreciate it. Thanks. The script below the following line need not be read. It's just for those people curious about the script and probably has little to do with how to execute script during the execution of SaveAs. _____________________________________________________________________________________________ Sub SetMachNo() ' **************************************************************************************************** ******** '***** PRIVATE DATA CENSORED ***** ' This SubRoutine passes the Custom Property Name "MachNo", Value, and Property Type to the' ' SetProp subroutine. Parts of the routine were taken from Microsoft at support.microsoft.com/kb/212618/en-us' ' **************************************************************************************************** ******** ' Generates the custom property "MachNo (hereafter Maschinennummer in German)" out of the file name.' ' The msoPropertyTypeString constant specifies the type of property, and must be included.' SetProp "Maschinennummer", Mid(ActiveDocument.Name, 3, 6), _ msoPropertyTypeString End Sub Sub SetVersion() ' **************************************************************************************************** ******** '***** PRIVATE DATA CENSORED ***** ' This SubRoutine passes the Custom Property Name "Version", Value, and Property Type to the ' SetProp subroutine.'Parts of the routine were taken from Microsoft© at support.microsoft.com/kb/212618/en-us' ' **************************************************************************************************** ******** ' Generates the custom property "Version" out of the file name.' ' The msoPropertyTypeString constant specifies the type of property, and must be included.' Dim Version As String VersionFirstPart = Mid(ActiveDocument.Name, 9, 1) 'Defines the first character of "Version" to be the ninth character of the file name' VersionSecondPart = Mid(ActiveDocument.Name, 10, 1) 'Defines the third character of "Version" to be the tenth character of the file name' ThisVersion = Mid(ActiveDocument.Name, 9, 1) & "." & Mid(ActiveDocument.Name, 10, 1) 'Combines VersionFirstPart with VersionSecondPart - but with the "." (period) in the middle' SetProp "Version", ThisVersion, _ msoPropertyTypeString End Sub Sub SetProp(CDPName As String, CDPValue As Variant, Optional _ CDPType As Long) ' **********************************************************************************' ' This routine was published by Microsoft© and retrieved by *****CENSORED*****' ' For further information, see http://support.microsoft.com/kb/212618/en-us' ' The SetProp routine checks to see whether the Custom Document Property pre-exists.' ' If it exists, then it adds the new value. If it does not exist, it creates the new' ' property and adds the new value.' ' **********************************************************************************' ' Make sure the optional argument CDPType is set. ' If it is missing, make it a string value. Dim oCDP, oProp, msg If IsMissing(CDPType) Then CDPType = msoPropertyTypeString End If Set oCDP = ActiveDocument.CustomDocumentProperties ' Compare each custom document property to the ' property you want to create to see whether it exists. For Each oProp In oCDP ' If the Custom Property exists... If oProp.Name = CDPName Then With oProp ' ...the custom property Type you are setting ' must match the pre-existing custom property. If .Type <> CDPType Then msg = "The custom property types do not match." msg = msg + " Custom property not set." MsgBox msg ' End the routine. Exit Sub End If .LinkToContent = False ' Set the new value. .Value = CDPValue End With ' A match was found, so exit the routine. Exit Sub End If Next oProp ' No match was found. Create a new property and value. oCDP.Add Name:=CDPName, Value:=CDPValue, Type:=CDPType, _ LinkToContent:=False End Sub
  4. I've used the ORK (Office Resource Kit) for that purpose and never had any problem with. Just find it and follow all the instructions. It works great. I've use many different so-called "transforms" on the same office package to be able to choose which part of the office package I wanted.
  5. I'm pretty new to visual basic... I've done script / batch writing in AutoIt and MSDOS. I've written a macro in Winword 2003 that works and I want it to be executed when someone does a SaveAs and then enters the filename. The macro has to be executed exactly between the time that the person has entered the filename and the closing of the file. I'll explain this in more detail: The footer of the Winword file I am working on contains a table with fields linked to custom docProperties: Machine number, Filename and Version. In our template, these custom docProperties just have xxx placeholders in them. We usually take the time to enter the machine number, version and file type in the docProperties before we close the file because certain fields in the document are linked to the docProperties. The filename that we use to save the file itself already consists of the filetype, machine number and version. I want to save some of our colleagues some time by generating the footer automatically. I did manage to get all this done in a macro HOWEVER the macro works fine in my file when I execute it manually, but I want it to be executed when the user either changes the filename or saves it for the very first time, so that it really is generated automatically, every time someone changes the name of the file or saves a new file. Can someone explain shortly or in depth, how to execute a macro during the saving of a file? I'd really appreciate it. Thanks.
  6. I've been doing that quite successfully with AutoIt... You just have to play around with it... use the ScriptRecorder and then you can record your personal installation routines. Every once in a while an application resists automation, but mostly there's some form of workaround.
  7. Has anyone been able to AutoIt MyLockBox yet? The last two menus have not let me automate them yet. Any ideas?
  8. This is only for those of you that want to use the free version of Lavasoft's Adaware 2008. I just updated it after using it for an installation, because I noticed one little mistake. $name = your name (default = ADMINISTRATOR) $comp = your company (default = ADMINISTRATION) $Mydir= installation directory Ad.au3
  9. Do you have an example where that works? That's one of the things that I don't so much like about AutoIt... there are simply not enough examples... I have spent hours trying out possibilities out before anything really works. Let me reiterate a little bit so that some of you might understand my dilemma. Here's an example: AutoIt v3 Window Info "Summary": >>>> Window <<<< Title: Setup - TUGZip Class: TWizardForm *snip* >>>> Control <<<< Class: TNewCheckListBox Instance: 1 ClassnameNN: TNewCheckListBox1 Advanced (Class): [CLASS:TNewCheckListBox; INSTANCE:1] ID: 919194<<<<<This here keeps changing whenever I rerun the script so I can't use ControlClick on it correctly Text: Position: 40, 109 Size: 417, 192 ControlClick Coords: 91, 61 Style: 0x54010161 ExStyle: 0x00000000 Handle: 0x000E069A >>>> Mouse <<<< Position: 394, 357 Cursor ID: 0 Color: 0xD6D3CE >>>> StatusBar <<<< >>>> Visible Text <<<< Select Additional Tasks Which additional tasks should be performed? Select the additional tasks you would like Setup to perform while installing TUGZip, then click Next. < &Back &Next > Cancel >>>> Hidden Text <<<< Setup will create the program's shortcuts in the following Start Menu folder. To continue, click Next. If you would like to select a different folder, click Browse. TUGZip B&rowse... &Don't create a Start Menu folder Setup will install TUGZip into the following folder. To continue, click Next. If you would like to select a different folder, click Browse. D:\Program Files\Tugzip B&rowse... At least 15.8 MB of free disk space is required. Please read the following License Agreement. You must accept the terms of this agreement before continuing with the installation. The dilemma is, that there are 3 options in this menu which are not listed in this summary: 1. Create a desktop icon 2. Create a quicklaunch icon 3. Don't display the configuration wizard when Tugzip is launched for the first time. For the first two options, I can use the Send("{!q}") or Send("{!d}") commands, but the third has no ALT command with which I can work. When I use the mouse to checkmark any of the boxes and then do an install in my virtual workstation, it keeps that information and remembers it for this PC, but when I install it on another PC, the checkmarks in that checklist are missing or inverted.
  10. If you haven't solved this yet, use the ORK (Office Resource Kit) that Microsoft provides free of charge.
  11. Hi. I've been recording my installations with AutoIt and have come across one problem. During recording, I'll click a combo box to select it. When I test my scripts, the combo boxes are already selected, because windows somehow remembers what was selected and then DEselects them. Is there any way to use some send command to make absolutely sure that certain boxes are selected or deselected? I have been able to find anything understandable or usable in the help file.
  12. Maybe it's my PC at the moment. Will try on my other PC after I get off work today. Thank you very much for your work.
  13. Starting WPI: JavaScript Error Report Message: Object expected URL: file://X:/HFSLIPENG/SOURCE/WPI/WPI.hta File: check.js Function: CountCheck() Line: 667 Note: None of my programs appeared in WPI, even though they are still listed in my config.js After clicking the error message away and clicking on the config button: Message: 'configList[...].prog' is null or not an object Url:file:///X:/HFSLIPENG/SOURCE/WPI/WPI.hta File:configwizard.js Function: FillInConfig() Line:174 By the way: Cat is a variable... did you read what I wrote about the variable: perhaps the software reads catch as the variable Cat with the suffix ch.
  14. Read my previous message. BTW - a little affair with the partner of a senior PayPal exec rules out the PayPal possibilty. I'd appreciate it if you made a different possibility possible.
  15. My new approach: Installing both the older and newer versions of WPI parallel and using the same config.js in both. In the older version WPI sets the beginning column on the right side, leaving one column of free space. I found out that this was due to the entry "pn=1;" in the config.js. When I changed this entry to "pn=0;", the column started correctly on the left side. Whenever I made any changes to the configurations however, WPI automatically changed it back to the wrong starting position and when I looked in the config.js, the entry I had originally changed was changed back to "pn=1;". This has been solved in the newer version of WPI, where the columns start at the right position. In the newer version of WPI, when using the exclude function and thereafter exiting to the installation routine, the following happens which does not happen in the older version: sleep.exe is called and thereafter, the error message which I mentioned in my original forum entry. This is not solved by changing the copyright sign back to a "c" in 2 parentheses as MRitter suggested. I am just using two programs that exclude one another - AVG and AVAST. There is the possibility to just use the exclude function in just one of the programs or to use the exclude function in both so that they exclude each other in the exact same manner. I am continuing to test this function from different angles and will keep updating this same message with the results that I have empirically found out. In the newer version, when I have any excludes, the moment when I exit to the installer program, the message appears "JavaScript Error Report Message: 'cond[...].0' is null or not an object URL:file://X:\HFSLIPXPENG\SOURCE\WPII\WPI.hta File:check.js Function: excludorIsChecked() Line 465" The older version does not trigger this error message. I don't know very much about Javascript yet, but what I do notice is line 472. In most of the javascript, the variable Cat is used with a capital C and in some places with a small C. On line 472 the word catch is used. I have no idea about if you use this term for CatCheck or if it really means catch, but in any case, there is a chance that the program might confuse Cat and catch as being the same variable with ch at the end. Is this really intentional? When I looked through the older version of the check.js where the function works correctly, I could not find the word "catch" in the text.
  16. My config.js (at the end, I've also attached my check.js) I've deleted some of the comments at the beginning and added my own. I've deleted the majority of your post ~~ Kel ~~ Please use the attachment feature on the forum or [ codebox] tags
  17. If you've read up on WPIW, you'll know that you shouldn't overwrite your config.js file, otherwise all the programs that you added and configured are gone.
  18. I changed the copyright symbol back to two parentheses with a "c" in the middle, but that hasn't helped me with the Function: excludorIsChecked() problem. Unfortunately I can't get my config.js to upload otherwise I'd show it to you. If you want, I can post the whole content, but since I have over 75 programs already in WPIW, it's a bit of reading to do.
  19. Error also still happens to me whenever I use excludes (even though I have changed the © copyright symbol back to a "c" with two parentheses).
  20. Hello. I deleted my older version and used the new version. I did however use the old config.js. I promptly got this message: "JavaScript Error Report Message4: 'cond[...],0' is null or not an object Url: file:///X:/HFSLIPXPENG/SOURCE/WPI/WPI.hta File: check.js Function: excludorIsChecked() Line 465" I read that one of the bugs that you got rid of was exactly this bug, so I don't understand how that happened. Any idea what I could do to get it to start working again? I did put a lot of work into my config.js. I opened line 465 of check.js with win32pad and here's what it looks like: var c = unescape(ReplacePath(cond[0]).replace(/\\/g, "\\\\")); Interestingly enough, win32pad marks the last 4 backslashes in the line blue and underlines them (that might be a hint as to what's wrong). The backslashes in lines 247 and line 351 are marked in the same manner though. The following things I noticed might also help you: The "Applications" checkbox is grayed out. I cannot put a check in the checkbox. I configured a special category called "security". In this section there are antivirus scanners that cannot be installed with one another. When I put a checkmark in the box of this section the error message appears. The error message also appears when I attempt to select defaults, as well as all or none of the applications. I configured a different category called "browsers". I can put a checkmark in this category and all browsers are checkmarked. ---------------------------------------------------------------------------------------------- A small update: I erased the excludes. All antivirus programs can now be selected together. Now the error message no longer appears BUT now both the "applications" and the "security" checkbox cannot be checkmarked and are grayed out. I'll keep toying around with it in the hopes that I can figure it out myself.
  21. I'll admit I'm blind as a bat sometimes, especially when something is right in front of my nose. Sorry.
  22. Is there any general way to make nlite addons work for WPI? I've looked in the cabs and saw that they all have ini files and a svcpack folder. How would the code look like if I wanted to use those in WPI? I added this as a new topic because it might be of interest to the general public.
  23. When installing Office 2003: Setup cannot find the transforms Here's the code: "%wpipath%\Install\Office2003_English\SETUP.EXE" TRANSFORMS="%wpipath%\Install\Office2003_English\Office2003.MST /qb-" How should this be changed for it to work?
×
×
  • Create New...