I have wrote a simple test .dll in vb.net to add a text file to the desktop:
Public Class TempClass
Public Function TextLoader()
Dim Loc As String = "C:\Users\<USER>\Desktop\TempFile.txt"
Dim w As StreamWriter = File.AppendText(Loc)
w.Write(vbNewLine & "Line 2")
w.Write(vbNewLine & "Line 3")
And I have added this dll to my installer using:
Custom Actions>Call DLL. In the DLL function name I have
Obviously added “TextLoader”. I am not getting the text
file added to the desktop on install though. Can anyone
give me a pointer please?