Skip to main content

 

I was wondering if there is a programmable way to unpack an aimmspack file, e.g., MyAimmsProject.aimmspack, without launching Aimms? Looking for something like

AimmsCmd.exe /Unpack "MyProject.aimmspack" -o "Path\To\Unpacked\Project"

Hello!

I am curious why you would like to do unpack an .aimmspack?

If I look at the release notes, since Jan 2017, you cannot open aimmspack with development licenses:

 

AIMMS 4.31.1.825 Release (The AIMMS 4.31.1.825 Release was released on January 25, 2017 Build 4.31.1.825)

PLEASE NOTE: From this version onwards, it is not possible anymore to open encrypted projects or .aimmspack files using a developer license of AIMMS. The reason is that encrypted projects or .aimmspack files are aimed at model deployment, while development licenses are not for that purpose. Those projects/files can still be opened using deployment licenses.

 

Maybe you could share more on your objectives.

Thank you


I’d prefer not to inconvenience users with constant updates and manual installations (i.e., launching AIMMS, loading an .aimmspack file, and creating a project directory). Instead, my plan is to implement an automated process that unpacks the .aimmspack file and updates the application remotely whenever it's ready. 

I was avised by aimms support to use:
 

echo on

rmdir UserProjectDir /s /q
mkdir UserProjectDir

AimmsCmd.exe --unpack-folder UserProjectDir MyProject.aimmspack

but it does not work always. Sometimes works but the command window remains open
 

 


AimmsCmd.exe expects input, line by line - whereby the last line is 
quit ;
You can redirect it from a file using the < on the command line.
So assuming quit.properties is a file containing just the line 
quit ;
using 
AimmsCmd <command line flags for AimmsCmd> aProject.aimmspack < quit.properties

should help here.


Thank you, Chris. I executed a batch file "unpack_delta.bat” containing (tried both, with and without --as-server):

if exist "%DestDir%" rmdir "%DestDir%" /s /q
AimmsCmd.exe --unpack-folder %DestDir% --as-server DELTA4.aimmspack < quit.properties

and

if exist "%DestDir%" rmdir "%DestDir%" /s /q
AimmsCmd.exe --unpack-folder %DestDir% DELTA4.aimmspack < quit.properties

Unpacking works perfectly but the command prompt remains open. Even the next line does not get executed. Please note that the file quit.properties is located in the same directory as the batch file unpack_delta.bat and the following line confirms it.

if exist quit.properties echo quit.properties has been found!

Best reagrds,


Hi,

 

Am I missing the mkdir between If exist … and AimmsCmd.exe lines?

 

With kind regards,

 

Chris.


I added but based my experience aimms.exe needs the folder to be created first but AimmsCmd.exe doesn't care; it creates folder if missing. Still the command window remains open; Looks as if  

< quit.properties

works with .aimms not .aimmspack!

 

Curious if this command line works for you, Chris?


Correct.  Thanks for pointing out.


You're welcome. The following works perfectly anyway.

if exist %DestDir% rmdir %DestDir%
mkdir%DestDir%

aimms.exe --unpack-folder %DestDir% --as-server --run-only u::prExitAimms MyProject.aimmspack

where prExitAimms is a procedure with a single line

ExitAimms();

I thought to collaborate with you to debug AimmsCmd.exe. Feel free to let me know if you want me to test something.


Good to read you can continue.

I shared the findings above with AIMMS PD&I and waiting for their response.


I was just informed by AIMMS PD&I that neither aimms.exe nor AimmsCmd.exe will be changed over this.


Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator