HOME PRODUCTS AND SERVICES ABOUT US FAQ

Your Complete Property Information source  

How to install QuickMap silently without any user interaction

QuickMap is normally installed by running setup off Disk 1, followed by Disk 2. However larger organisactions may choose to install QuickMap automatically via a login script. The instructions below describe how QuickMap may be installed automatically for individual users via a login script. 

Step 1 - Setup the server
Do a full QuickMap install of your server PC in the standard way (e.g. to C:\QMap)

Step 2 - Client install
Share C:\QMap on the server to each client (e.g. to Z:), then for each client, do an unattended minimal install with the command:

msiexec /qb /l* qmaplog.txt /i Z:\Release\quickmap.msi INSTOPT="MINIMAL"

Where Z:\ is the shared folder on the server.
To do a full install, rather than minimal, the command would be

msiexec /qb /l* qmaplog.txt /i Z:\Release\quickmap.msi INSTOPT="TYPICAL"


Step 3 - Register QuickMap
Write your Registration Key Number to the registry HKEY_CLASSES_ROOT\Qkey\Option\Default

This will result in the registration key be automatically displayed when QuickMap prompts the user to register the first time they run it. All the User has to do is click the Register button. They do not need administrator rights to successfully register QuickMap. 

If autoregister.lic exists in the quickmap Data folder (e.g. Z:\Data ) then QuickMap will register itself online without asking for any input from the user. A dialog box is displayed while this registration process is in progress.

 

 

Ongoing software updates

The software update can be updated silently with the command

AutoUpgrade\setup.exe /silent 

Things to note;
1) Make sure each user can write to the file QMap.LOG. This is where the output to setup.exe will go. QuickMap will attempt to write to C:\QMap.log first, and if that fails, it looks for HKEY_CLASSES_ROOT\QuickMap\Config\LogFile in the registry to see where to write to. This file must be writeable by the user. 
2) If the latest version has already been run silently, they will not be prompted to upgrade, but if you want to hold off doing the software upgrade, you can delete the file AutoUpgrade\Release\Upgrade.txt The user will not be prompted to upgrade if this file does not exist

 

Silent uninstall

Quickmap may also be uninstalled silently. Normally uninstall will run Utility\UninstallQMap.exe which displays  this form:

To prevent this form being displayed, you must create a file called uninstallqmap.txt in the same folder as uninstallqmap.exe.

This txt file and exe are located in the Utility folder. The txt file may contain a list of folders you want the uninstall to remove if you wish.

Below is a sample bat file for uninstalling Quickmap silently;

@echo off

::Script to uninstall Quickmap

::This script will silenly uninstall quickmap from the following locations

:: C:\Program Files\QMap

:: C:\Program Files (x86)\QMap

:: C:\QMap

::If you have quickmap installed in another location please upate the existingQMPath

::variable to the appropriate location

 

::initialise variables

    set existingQMPath=%ProgramFiles(x86)%\Qmap

 

::uninstall existing versions of quickmap

    ::Find existing Quickmap Path

        if exist "%existingQMPath%\Utility\UninstallQMap.exe" goto createUninstallQMapTXT

        set existingQMPath=%ProgramFiles%\Qmap

        if exist "%existingQMPath%\Utility\UninstallQMap.exe" goto createUninstallQMapTXT

        set existingQMPath=C:\Qmap

        if exist "%existingQMPath%\Utility\UninstallQMap.exe" goto createUninstallQMapTXT

        ::Existing QMap not in common locations or not installed -> Skip uninstall

        goto quickMapNotFound

    :createUninstallQMapTXT

       Echo %existingQMPath%>"%existingQMPath%\Utility\UninstallQMap.txt"

    ::uninstall quickmap

        Start /wait "Remove Existing Quickmap Install" MsiExec.exe /X{5E68BB57-D012-4AD5-ABA6-242B5DDB2643} /qn /norestart

    ::cleanup leftover files and folders

        del "%existingQMPath%\Utility\UninstallQMap.txt"

        RD  "%existingQMPath%\Utility"

        RD  "%existingQMPath%"

        goto end

 

:quickmapNotFound

Echo Quickmap was not found in the common default locations, if you

echo have quickmap installed in another location please alter the

echo existingQMPath variable to include that location.

 

:END

 

Contact Us

QuickMap provides up-to-date Mapping and property information throughout New Zealand. 

 
About Us    | Contact       | Frequently Asked Questions       | Terms and Conditions