Solved

package and deployment

Posted on 2001-06-24
5
229 Views
Last Modified: 2013-11-23
when use package and deployment to make my setup project,
i want to add a file to my project that will be installed on the target computer in a specific directory such as "c:\ashraf" not to the path that exist in the list ($apppath,...)
0
Comment
Question by:aft
  • 2
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
profya earned 10 total points
ID: 6223592
Ok, run the Package Deployment Wizard, start bulding your package and then add your file normally from the INCLUDED FILES screen. Adjust the location where the file will be installed in from INSTALL LOCATIONS screen (comes 5 steps after adding files ) take advantage of the package variables "$(ProgramFiles)" for example. Now to install a backup utility in the following location: "program files\MyApp\Backup" for example you can use "$(ProgramFiles)\MyApp\Backup" as an install location for your backup.exe file.
0
 

Expert Comment

by:oldbie
ID: 6223607
The "Install Locations" window in the P&D wizard has a column named "Install Location" (last one on the right). It can be dropped down to choose from about 8 directiories, such as "Common Files", "Fonts", etc. But there's no "C:\ashrat" on the list :) So, if you really need the file in a specific directory, maybe in your main form_Load routine, you could use FileCopy. e.g.:

dim sourceName, destName
sourceName = appPath$ & "\myFileName"
destName = "c:\ashrat\myFileName"
FileCopy sourceName, destName

You can also use Kill sourceName, if you want to get fancier and put in some logic to move the file the first time the app runs.

0
 

Expert Comment

by:oldbie
ID: 6223616
profya, please submit answers as comments. when you make it a proposed answer, it locks the question so no one else will see it. read the instructions at http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp

Thanks!
0
 
LVL 14

Expert Comment

by:profya
ID: 6223758
Oldbe,
Thanks, but when does I used "Answer" rather than "Comment"?
The link you gave me contains a lot of lines to read. Use my e-mail profya@yahoo.com to answer.
0
 

Author Comment

by:aft
ID: 6224042
can i put two files with the same name but located into two different directories in the same project using package and deployment and install them into two differnt directories also?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Performance of SQL statement 37 137
how to resize animated Gif image in delphi ? 1 45
Problem to With line 4 74
Create Files based on Cell Values in a Range in Excel 12 43
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question