Batch file does not run properly

Got a problem you cannot solve? Try here.
vsaeternautocrib
Posts: 7
Joined: Fri Mar 30, 2012 11:40 am

Batch file does not run properly

Postby vsaeternautocrib » Mon Mar 11, 2013 11:30 am

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?
Attachments
RegisterIntelliport.rar
(320 Bytes) Downloaded 341 times
IntelliportAddon.rar
(479.08 KiB) Downloaded 344 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Batch file does not run properly

Postby FrancescoT » Mon Mar 11, 2013 12:10 pm

Dear User,

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

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

vsaeternautocrib
Posts: 7
Joined: Fri Mar 30, 2012 11:40 am

Re: Batch file does not run properly

Postby vsaeternautocrib » Wed Mar 13, 2013 10:23 am

Did you find any issues with the project?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Batch file does not run properly

Postby FrancescoT » Wed Mar 13, 2013 11:24 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

vsaeternautocrib
Posts: 7
Joined: Fri Mar 30, 2012 11:40 am

Re: Batch file does not run properly

Postby vsaeternautocrib » Wed Mar 13, 2013 5:46 pm

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.

vsaeternautocrib
Posts: 7
Joined: Fri Mar 30, 2012 11:40 am

Re: Batch file does not run properly

Postby vsaeternautocrib » Wed Mar 13, 2013 5:50 pm

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Batch file does not run properly

Postby FrancescoT » Thu Mar 14, 2013 4:36 am

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 5843 times


2#... and also the registry entries are correctly added to the target registry.
mage2.png
mage2.png (340.2 KiB) Viewed 5843 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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 77 guests