Solved

package and deployment

Posted on 2001-06-24
5
220 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now