Run exe after msi installation - App doesn`t run? - installation

I read this thread
Run exe after msi installation?
I followed the instructions and I have weird problem.
When I install the MSI from VS (right-click on installer project and select install), the script works perfectly but when I run the installation from the MSI file
I see the checkbox but it does nothing – the application doesn't run.
Anyone know what can be the cause for this?

Eventually I created console application that run install and after it run my application.
I succseeded in runing app after install but it runs under system user and it`s not good for me

Related

Visual Studio Setup Project: Failed to execute script after installing app and opening it

So I finished an app, made an .exe, and the original .exe works, but when I try to install the app, the .exe and shortcuts to the .exe don't work. I get this error message: Failed to execute script (app name)
Is there a solution to this or should I make the installer another way or on another computer? In the meantime, I'll try to look into other options.
So I switched to Inno Setup and the first time I built the installer it worked. But after building again, the same error occurred. I eventually tried running the app as admin and it worked, so to fix the issue, I added something in the registry to make the app run as admin by default. This is how you do that.

My silent installation restarts the machine after Prerequisite installation but doesnot complete installation of the application

I am trying to upgrade the application with command C:\Windows\TEMP\MyApplication_64_7.4.10.8016.exe /s /v"/qn ADDLOCAL=ALL"
It is installing the .net 4.7.2 framework Prerequisite, reboots the system but doesn't complete the installation.
However, when I run the exe from double click, it restarts and completes the installation, which is the expected behavior
You'll probably want to set the REBOOT property to Supress or ReallySupress in your installer.
The approach(mentioned in above comment) of creating a scheduled task before starting of installation worked for me, in that scheduled task, I re-launched the installer

Cannot Run Qt Installer Application on MAC(Mojave)

I have developed a camera application for MAC platform. The app executable and framework dependencies were bundled into an installer app named QtCameraInstaller (developed using Qt Framework). This installer app, perform unzip process to extract the compressed files.
QTProcess process;
process.start("/bin/sh unzip /User/MyMac/Desktop/test.zip");
Case #1:
By clicking the installer application, I was able to run the installer. Exactly the unzip shell commands(part of my Qt code) were not working. The unzip task were skipped, resulted in unsuccessful installation of my Camera App (dependencies found missing after the installation).
Case #2:
When I tried to run the installer resides inside the bundled package, I was able to install the application successfully (i.e) now the shell commands were working fine. The unzip commands were working and dependencies were copied successfully.
MAC OS Version: 10.14.5(Mojave)
Can someone please help to fix the problem in Case #1 ?
What differs between Case #1 vs Case #2 ?
Please try modifying it to this: /bin/sh -c /usr/bin/unzip /User/MyMac/Desktop/test.zip
It a suggestion that may work, considering you may not have a full environment on the first case, so passing the exactly path with the -c may help.

Flexera Installshield 2015 Uninstall Custom Action before System Changes

I'm running into an issue using installshield as installerproject for my windows service.
I have an exe which I can run with -I
which installs my project as windows service.
This executes fine as I can set the param in the last dialog where "Show Launch Program" is set true.
But now when I'm uninstalling the whole program it should run the command
/Program Files(x86)/company/app/main.exe
command with -U parameter.
But I can only specify custom action to run after the main.exe has already been deleted.
Does anyone knows a way to run my custom action before the uninstallation process deletes my files?
The problem was with the installed version of installshield.
With the Limited Edition (LE) you are just able to create custom actions in some dedicated steps and not everywhere while installing.
I've written now an own command line file which I'm providing together with the SETUP.exe.

How to auto-upgrade program (Inno Setup) on windows 7 without being admin?

I use Inno setup to install python package (py2exe) on the program files folder. the first installation require admin privileged and it is ok.
The application has automatically upgrade option (it download the new setup exe ad run it in silence mode)
The problem is that it fails because the user is not admin.
My first though was to install the first installation in {pf} folder, but to install the updated pyc in the user folder. and somehow to tell the app to check for pyc in this folder.
But I don't know how to do it and if it can be done
A normal application can not run an installer to update a system wide location without it asking for/requiring full admin access.
As it's best practice to prompt/warn the user before an upgrade the UAC prompt shouldn't be a problem.

Resources