Page 1 of 1

Batch file does not run properly

Posted: Mon Mar 11, 2013 11:30 am
by vsaeternautocrib
Hi all,

I've been using Installaware for a year now and have build many installers along the way. While this one appears to be simple, I cannot for my life get the batch file to run correctly. The installer is to deploy a few files into the application folder and at the end of the install, run a batch file to register assembly and import registry settings. At the end of the script, I can see the batch file run but does not perform the actions. If I run the batch file manually, everything runs fine. I've attached the project here and along with my batch file. Any ideas what I'm doing wrong?

Re: Batch file does not run properly

Posted: Mon Mar 11, 2013 12:10 pm
by FrancescoT
Dear User,

I will have a look at your project ... I will be back as soon as possible.

Regards

Re: Batch file does not run properly

Posted: Wed Mar 13, 2013 10:23 am
by vsaeternautocrib
Did you find any issues with the project?

Re: Batch file does not run properly

Posted: Wed Mar 13, 2013 11:24 am
by FrancescoT
Dear User,

Unfortunately, the project you posted doesn't contain the files required to build it.

If you don't want to post them on the forum, use; support@installaware.com

Anyway, I have noticed that your batch file verifies if the target OS is a x64 platform, but your project only targets x86 OSes.
I'm wrong?

Let me know.

Regards

Re: Batch file does not run properly

Posted: Wed Mar 13, 2013 5:46 pm
by vsaeternautocrib
The batch file merely checks if "Program Files (x86)" exists which helps easily identify whether the software was installed on a 64bit or 32bit OS and therefore points to the right directory (note: they are 32bit apps). I can run this batch file manually after the install and it is processed correctly. I've attached the files here. Let me know if you need additional info or files.

Re: Batch file does not run properly

Posted: Wed Mar 13, 2013 5:50 pm
by vsaeternautocrib
For some reason, it will not let me upload it here so I've uploaded it YouSendIt.com

https://www.yousendit.com/download/UVJq ... WUlQWWNUQw

Let me know if you have any trouble downloading the files.

Re: Batch file does not run properly

Posted: Thu Mar 14, 2013 4:36 am
by FrancescoT
Dear User,

I just verified your package and it worked fine with my verification.

I tested the package using WIN 7 x86, with Net 2.0 & 3.5 runtimes installed.
As you can see by the following screen-shots;

1# the CMD window of the executed BAT file once the installation has been completed.
image1.png
image1.png (407.89 KiB) Viewed 5846 times


2#... and also the registry entries are correctly added to the target registry.
mage2.png
mage2.png (340.2 KiB) Viewed 5846 times

Just a note; use the "RegAsm.exe" already available on target OS insted of adding it to your installation files.
The tool is available on target system under the Net framwork version folder.
For example for Net 2.0 is; C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe

Regards.