I am creating an installer with no files as it just needs to run 2 scripts. How do I do this?

What I tried as below:

<project>
    <shortName>Windows10PHPPOSServicePatch</shortName>
    <fullName>Windows 10 PHP POS Service Patch</fullName>
    <version>1.0</version>
    <splashImage>phppos_splash.png</splashImage>
     <rebootRequired>0</rebootRequired>     
    <installerFilename>${product_shortname}-${product_version}-${platform_name}-installer.${platform_exec_suffix}</installerFilename>

    <componentList>
        <component>
            <name>default</name>
            <description>Default Component</description>
            <canBeEdited>0</canBeEdited>
            <selected>0</selected>
            <show>1</show>
        </component>
    </componentList>

     <postInstallationActionList>       
        <runProgram>
             <abortOnError>0</abortOnError>
             <program>C:\Program Files\PHP Point Of Sale Stack\apache2\scripts\serviceinstall.bat</program>
             <programArguments>REMOVE</programArguments>
             <showMessageOnError>0</showMessageOnError>
       </runProgram>
        <runProgram>
             <abortOnError>0</abortOnError>
             <program>C:\Program Files\PHP Point Of Sale Stack\apache2\scripts\serviceinstall.bat</program>
             <programArguments>INSTALL</programArguments>
             <showMessageOnError>0</showMessageOnError>
       </runProgram>

    </postInstallationActionList>
    <vendor>PHP Point Of Sale</vendor>
</project>

I get the following error about creating directory.

https://www.dropbox.com/s/mh1me7h2tzyfb1q/Screenshot%202015-08-03%2009.36.04.png?dl=0

asked 03 Aug '15, 09:38

Chris%20Muench's gravatar image

Chris Muench
69911
accept rate: 0%

edited 03 Aug '15, 09:39


If you just want to execute these scripts and you don't want to unpack any files, you can set the run programs in the readyToInstallActionList and put an exit action after the last runProgram.

<project>
    <shortName>Windows10PHPPOSServicePatch</shortName>
    <fullName>Windows 10 PHP POS Service Patch</fullName>
    <version>1.0</version>
    <splashImage>phppos_splash.png</splashImage>
     <rebootRequired>0</rebootRequired>

    <installerFilename>${product_shortname}-${product_version}-${platform_name}-installer.${platform_exec_suffix}</installerFilename>

    <componentList>
        <component>
            <name>default</name>
            <description>Default Component</description>
            <canBeEdited>0</canBeEdited>
            <selected>0</selected>
            <show>1</show>
        </component>
    </componentList>

     <readyToInstallActionList>       
        <runProgram>
             <abortOnError>0</abortOnError>
             <program>C:\Program Files\PHP Point Of Sale Stack\apache2\scripts\serviceinstall.bat</program>
             <programArguments>REMOVE</programArguments>
             <showMessageOnError>0</showMessageOnError>
       </runProgram>
        <runProgram>
             <abortOnError>0</abortOnError>
             <program>C:\Program Files\PHP Point Of Sale Stack\apache2\scripts\serviceinstall.bat</program>
             <programArguments>INSTALL</programArguments>
             <showMessageOnError>0</showMessageOnError>
       </runProgram>
        <exit />
    </readyToInstallActionList>
    <vendor>PHP Point Of Sale</vendor> </project>
link

answered 03 Aug '15, 12:04

jesus's gravatar image

jesus ♦♦
1.1k14
accept rate: 18%

That seems to work. But how do I have a finish screen? It just disappears

(03 Aug '15, 12:12) Chris Muench

I figured out how to use an info dialog to display a success message.

(03 Aug '15, 13:48) Chris Muench
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×155

Asked: 03 Aug '15, 09:38

Seen: 566 times

Last updated: 03 Aug '15, 13:48