close installer - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

close installer

Hi again... got a few questions.

Is it possible to shutdown/close the installer by command ... something like wm_close ?

How can i copy the setup into the installation folder?

/regards Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: close installer

Hello Carl,
Is it possible to shutdown/close the installer by command ... something like wm_close ?
I'm afraid I don't fully understand what you mean. Do you want to close the installation process after it starts or only to remove the "ExitDialog" from your installation UI? Can you give us more details about this (maybe exemplify)?
How can i copy the setup into the installation folder?
Can please tell us why do you want to achieve this behavior?

If you have an EXE package installation, then you can set an extract location for your resources installation using the "Extract Location" field from "Media" page.

If you have a MSI package installation, then please keep in mind that when Windows Installer installs a MSI file it caches it in the hidden Windows Installer Cache directory . Also, the cached MSI is stripped of any files it may contains for saving a significant amount of space required by large packages.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: close installer

oh well, we have an exe(started from within the install) that when it returns some value, the installation process should just abort and go away.

Its the setup.exe or .msi we want placed together with the installed application.
The (somewhat stupid) reasoning for having it like this is: it always been like that.
:(
But atleast we're going away from wise.

Ill take a look at extract location...
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: close installer

Hello,
oh well, we have an exe(started from within the install) that when it returns some value, the installation process should just abort and go away.
In order to obtain this select you can launch the related exe file using a custom action. Then, from "Custom Actions" page select your exe custom action and, from "Custom Action Properties" right pane, enable "Synchronous execution, check return code" option.
Its the setup.exe or .msi we want placed together with the installed application.
The (somewhat stupid) reasoning for having it like this is: it always been like that.
If you want to copy the installation package in your "Application Folder" (APPDIR), then you can proceed like this:
- Go to "Custom Actions" page and add a "Set installer property" custom action with sequence, scheduled before "Wizard Dialogs Stage" -> "Paths Resolution" action group, like this:
  • Property: MY_EXE_LOCATION
    Formatted: [SETUPEXEDIR]
if you have an exe installation package, or a "Set installer property" custom action like this:
  • Property: MY_MSI_LOCATION
    Formatted: [SOURCEDIR]
if you have a MSI installation package.
- Go to "Files and Folders" view and create a new property based folder using your custom property (MY_EXE_LOCATION).
- Go to "Application Folder" and add a file copy/move operation like this:
  • Source File
    Name: EXE_FILENAME.exe
    Folder: MY_EXE_LOCATION

    Destination File
    Name: EXE_FILENAME.exe
    Folder: APPDIR
- Also, you should use a file removal operation in order to delete your installation package file on uninstall.
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”