rnv.kalz
Posts: 19
Joined: Wed Apr 20, 2011 9:54 pm

COPY file as a Prerequisite

Hello,

I need to do few things to successfully complete the installation and I couldn’t find any documentation on the Advanced Installer site.

Here is my scenario..

I have to copy an EXE file to C:\ (should be C:\) before the installation begin. I tried to add it to the prerequisite but it is trying to install the .EXE file. I only need to COPY the file to the C:\ without asking the user to select a folder to copy. It has to go to the c:\.

Then during the step 5 of 9 the user will enter some data in the editbox and the installer need to capture the value and add it to the placeholder in the .BAT file. Can we create or update a .BAT file during the installation? Or may be update the placeholder with the editbox value in the txt file and then change the txtfile format to .BAT?

All I have to do is..

Open cmd prompt..
Then type..

@echo off
cd\
selfssl7.exe /n cn=placeholder /v 2000 /t /x /f c:\placeholder.pfx

that’s it..

And then proceed to the next step so that I can upload the created file on the c:\.

We are using self-signed certs for our application and it is very important to do this step. Please help.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: COPY file as a Prerequisite

Hi,
I only need to COPY the file to the C:\ without asking the user to select a folder to copy. It has to go to the c:\.
For this you can simply place the EXE file in the predefined folder ''WindowsVolume" from Files and Folders page. This predefined folder will resolve
at install time to the partition on which Windows is installed, most of the case this being C:\.

For editing the BAT file which you install as a normal file you can take a look at the following example. Just as you suggested in this article we treat the file
as a text file, no matter the extension it has.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hanajanda
Posts: 1
Joined: Sat May 28, 2011 9:09 am

REGARDING

That is excellent. I come here constantly that is publish similar to this what exactly are primary reason. :) Continue the fantastic work.

Return to “Common Problems”