I'm fairly new to Advanced Installer and was wondering on how you get to launch a exe installation using custom action. My project settings is as follows:
Product Details:
Name: My App
Version: App Version
Publisher: App Publisher
register product with Windows Installer (unchecked)
Files and Folders:
Windows Volume -> Temporary -> MyAppFolder -> Has 4 files
Install.bat
app_x86.exe
app_x64.exe
Readme.txt
Builds:
Package Type: Single MSI
Archive: Archive Installation files into CAB files
Compress CAB files for smaller size (checked)
One CAB archive containing all installation files (selected)
Include CAB file into the MSI database
Custom Action:
Installation Sequences -> Execute Sequences -> Add Resources -> Launch File (Placed after Publish Product)
The bat file works when run on the computer and manually run. But when I build the msi and hit run, it runs but doesn't install (no entries in control panel). It appears during the installation but not after.
Bat file:
Code: Select all
@echo off
set current_dir=%~dp0
cd %current_dir%
set progfiles86root=%ProgramFiles(x86)%
IF NOT "%progfiles86root%"=="" GOTO 64Bit
app_x86.exe /Q
GOTO Exit
:64Bit
app_x86.exe /Q
app_x64.exe /Q
:Exit
exit 0
FOLLOW US
Get the latest news in Application Packaging