Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

specific question about installations 1

Status
Not open for further replies.

sarahmc22

Programmer
Nov 30, 2000
36
US

Hi,

I am trying to figure out the cheapest installation program that will fit the needs of my software program. I need an installation program that will not write over, on reinstall, certain data files in myprogram directory. The VB install program doesn't seem capable of being programmed to do this. Would Wise's Installmaker be up to the task?

Thanks,

S
 
The vb setup is actually not too bad to customise. I need to do the same thing and added
Sub CopyDatabase(cSrc As String, cDest As String)
Dim l As Long
Dim temp As String
temp = Dir(cSrc & "*.mdb")
Do Until temp = ""
l = CopyFileLocal(cSrc & "\" & temp, cDest & "\" & temp, -1&)
SetAttr cDest & "\" & temp, vbNormal
temp = Dir
If temp = "" Then Exit Do
Loop
End Sub

calling it as

CopySection strINI_FILES

INSERT AFTER THIS

cTemp = Trim$(gstrDestDir)
If Right$(cTemp, 1) <> &quot;\&quot; Then cTemp = cTemp & &quot;\&quot;

If gstrDataDestDir <> gstrDestDir Then
cTemp = Trim$(gstrDataDestDir)
Call CopyDatabase(gstrSrcPath, cTemp & &quot;Database&quot;)
Else
cTemp = Trim$(gstrDestDir)
If Right$(cTemp, 1) <> &quot;\&quot; Then cTemp = cTemp & &quot;\&quot;
cTemp = cTemp & &quot;Database\&quot;
Call CopyDatabase(gstrSrcPath, cTemp)

Wise is a click and go programme. I can't customise it at all, not the cheap one anyway. It is good at installing files like msvcrt.dll etc which the vb one can't/won't do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top