By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,151 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,151 IT Pros & Developers. It's quick & easy.

XP Packaging Wizard and Application Icon

P: n/a
Problem when using Xp Packaging Wizard and the database being able to find
the Application Icon after database is deployed.

Under Menu/Tools/Startup form I have:
Application Icon: c:\vms\handshak.ico

Unfortunately, when I use the Xp Packaging Wizard the default folder it uses
to install the database vms.mdb is c:\program files\vms. Therefore when the
database is started it can't find the handshak.ico in the directory c:\vms
because it is not there, it is in c:\program files\vms.

Of course I can put in Application Icon:
c:\program files\vms\handshak.ico and everything will work except if and
when the user decides to change the install to directory from c:\program
files\vms to something else.

Anyone have this problem - maybe found a work around?
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sub cmdAddProp_Click()
Dim intX As Integer
Const DB_Text As Long = 10
intX = AddAppProperty("AppTitle", DB_Text, "My Custom Application")
intX = AddAppProperty("AppIcon", DB_Text, "C:\Windows\Cars.bmp")
Application.RefreshTitleBar
End Sub

Function AddAppProperty(strName As String, varType As Variant, varValue As
Variant) As Integer
Dim dbs As Object, prp As Variant
Const conPropNotFoundError = 3270

Set dbs = CurrentDb
On Error GoTo AddProp_Err
dbs.Properties(strName) = varValue
AddAppProperty = True

AddProp_Bye:
Exit Function

AddProp_Err:
If Err = conPropNotFoundError Then
Set prp = dbs.CreateProperty(strName, varType, varValue)
dbs.Properties.Append prp
Resume
Else
AddAppProperty = False
Resume AddProp_Bye
End If
End Function
"Barry Edmund Wright" <ba*****************@rogers.com> wrote in message
news:53*****************@news04.bloor.is.net.cable .rogers.com...
Problem when using Xp Packaging Wizard and the database being able to find
the Application Icon after database is deployed.

Under Menu/Tools/Startup form I have:
Application Icon: c:\vms\handshak.ico

Unfortunately, when I use the Xp Packaging Wizard the default folder it uses to install the database vms.mdb is c:\program files\vms. Therefore when the database is started it can't find the handshak.ico in the directory c:\vms
because it is not there, it is in c:\program files\vms.

Of course I can put in Application Icon:
c:\program files\vms\handshak.ico and everything will work except if and
when the user decides to change the install to directory from c:\program
files\vms to something else.

Anyone have this problem - maybe found a work around?
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.