-
September 16th, 2009, 12:14 AM
#1
Create an ini file in install location
Hi All,
i am doing a VB.NET 2.0 Windows Application.
I want to create an ini file in the location where we are installing the application. the code that i wrote is
Private Sub Installer1_AfterInstall(ByVal sender As Object, ByVal e As System.Configuration.Install.InstallEventArgs) Handles MyBase.AfterInstall
Dim iniPath As String
Dim Asm As System.Reflection.Assembly =
System.Reflection.Assembly.GetExecutingAssembly()
Dim configPath As String
configPath = Asm.Location
iniPath = configPath & "\MyiniFile.ini"
WriteString("INSTALLDETAILS", "DATETIME", "datetime", iniPath)
End Sub
but its not working.
what can be the problem with this ? anybody please help..
its very urgent
Thanks in advance
-
September 16th, 2009, 07:40 PM
#2
Re: Create an ini file in install location
Wouldn't that be your INSTALLER running? Why not just include a file in setup and deployment, or even click-once?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|