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!

ganman
Posts: 1
Joined: Thu Nov 24, 2016 7:50 am

MSI from EXE(s) - Prerequisites

Hi,

i want to create a MSI Package for my OCS Inventory Agent with AI Architect 13.4.
Until now i use a CMD with this content:
-----------------------------------------------------------------------------
setlocal

REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\servername\apps\OCS

IF %PROCESSOR_ARCHITECTURE%==x86 SET INSTALLDIR=%ProgramFiles%
IF %PROCESSOR_ARCHITECTURE%==AMD64 SET INSTALLDIR=%ProgramFiles(x86)%

IF EXIST "%INSTALLDIR%\OCS Inventory Agent\OCSInventory.exe" goto end else goto install

:install
call %DeployServer%\OCS-NG-Windows-Agent-Setup.exe /S /NOSPLASH /NO_SYSTRAY /NOW /SERVER=https://myserver.domain.tld/ocsinventory /SSL=1 /CA=%DeployServer%\server.crt /TAG=123456

:End

Endlocal
-----------------------------------------------------------------------------

I tried to create a MSI Package with this http://www.advancedinstaller.com/user-g ... o-msi.html but i can't get it to work.
I added the oca agent application and under additional files my server certificate file (server.crt). under full ui i copied this:
/S /NOSPLASH /NO_SYSTRAY /NOW /SERVER=https://myserver.domain.tld/ocsinventory /SSL=1 /CA=server.crt /TAG=123456

When i run my MSI it installs the OCS Inventory Agent but can't get the server certificate file right. OCS Logfile says something like the NTFS rights aren't correct. If i launch my CMD it works fine. Another task is the uninstall part. OCS uninstall CMD is the following:
%ProgramFiles (x86)%\OCS Inventory Agent\uninst.exe /s

How can i implement it in the MSI Package?
Sorry for my poor english.

thx
manuel
Horatiu
Posts: 42
Joined: Tue Nov 29, 2016 1:19 pm

Re: MSI from EXE(s) - Prerequisites

Hello Manuel,

First of all, welcome to the forums.

Regarding your server certificate issue , could you please provide your AIP project to better analyze the problem?

Concerning the removal of the program, you will have to create a LaunchFile custom action, at uninstall. I have attached a sample project to make it easier for you.
Check the Custom Actions section of the project.

As a side note, most modern installers support both install and uninstall, they don’t have two different .exes (one for install and one for uninstall). OCS Inventory Agent,
unfortunately has two, this is why you cannot pass the parameters you require in the prerequisite section for uninstalling. The only solution is creating a custom action.
Hope this gives you a better understanding of the issue.

Best regards,
~Horatiu
Attachments
EXE to MSI.rar
Sample project
(3.51 KiB) Downloaded 478 times

Return to “Building Installers”