WISE windows installer - get updated file

Posted on 2006-04-11
Last Modified: 2013-11-14
Hey guys, I'm new to WISE and created a simple WISE install package for an application.  There is two questions that I have.


This WISE package installs/registers a DLL and installs two config files.  These two config files are stored on a public network drive.  

I want to be able to change the config files and when someone runs the installer on their desktop it will install these updated config files on their system and not the previous ones that seem to be hardcoded into the installer.

Is there some way of doing this?


Is there some way of running a script when someone installs the package.  Basically what I want it to do is if the user has rights to query Active Directory it will query active directory and save a text config file, else it will install the config file mentioned in question 1.


Question by:Leo Eikelman
    LVL 8

    Author Comment

    by:Leo Eikelman
    I want to also explicitly add that I don't want to recompile the WISE package to get the update file.

    LVL 10

    Expert Comment


    If I understand your question (and subsequent comment) correctly - you want to change the way your created MSI works ... but you don't want to alter the MSI?  If so, I don't think you'll be able to achieve your goal I'm afraid.

    It sounds like your MSI (and associated .CAB?) has the two config files embedded in it and expects to install the files on the target system, irrespective of whether the 'correct' config files exist on your shared public drive or not.  You'll not be able to change this behaviour without either re-doing the MSI or, possibly, altering its behaviour with a Transform file.

    I'd suggest in this scenario, you either redo the MSI with the latest config file or - if you know the config files will change frequently - consider reengineering your approach to the problem; eg.

    a. Let the MSI install the DLL only and ..
    b. Get the (frequently changing) config files to the machine in some other manner (login script for instance?)
    [c. Alternatively, can the application be configured to look directly at the public drive for its config files anyway?]

    Yes there is, but again you'll need to alter the MSI - this is the type of functionality often acheived using Custom Actions within an MSI which will let you run an executable, launch an external/embedded VBScript etc.   In this instance, I suspect a VBScript would be the most appropriate for your needs.

    Hope that helps somewhat, but if I've misunderstood your query, please let me know..


    LVL 8

    Author Comment

    by:Leo Eikelman

    For Q1.

    What you suggested

    >>a. Let the MSI install the DLL only and ..
    >>b. Get the (frequently changing) config files to the machine in some other manner (login script for instance?)
    >>[c. Alternatively, can the application be configured to look directly at the public drive for its config files anyway?]

    Essentially, that is what I want it to do.  I want it to install the DLL and then go and get the latests config files from the public drive.  But how would I do that.

    For Q2.

    If I create a VBScript, how do I make the MSI file run it when it is executed?

    Thanks for the help.

    LVL 10

    Accepted Solution


    Sorry for the delay - been busy in the last few days..!

    I'll deal with Q2 first..  I don't use the Wise installer myself, I use InstallShields product, but I suspect the same functionality is available in both under one name or another.    Have a look in the help file for "custom actions".  Generally, you should be able to execute a script your included in your package (or any other valid executable etc.) during the install phase of your package - the VBScript would attempt to query your AD and, if appropriate, copy the config files from your public directory.   The following might help:

    Q1.. If you add a VBScript to your MSI, then you'll end up with the 'uptodate' config files *at the time of the MSI being installed*.  However, if you change the config files on your public directory, the MSI will not update them from there (it's done its job - installing the DLL..) - you'll really need to put something in place to keep the local and public directory config files in sync - you could acheive this with a VBScript called from your login scripts perhaps?


    LVL 8

    Author Comment

    by:Leo Eikelman
    Thanks for the response.  We decided to go a different direction but I'll still give u the points for your suggestions.


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Storing files into Microsoft Azure using AutoHotkey program 3 53
    fizzArray3  challenge 1 47
    scoreUp challenge 14 40
    wordsWithout 49 64
    This is an explanation of a simple data model to help parse a JSON feed
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now