hey guys i made a program in vb that gets information from a text file when a number is entered, but when i use inno to make the setup program it cant find the files to read.


the code is like this
VB Code:
  1. If Text1.Text = "1" Then
  2. Text2.Text = ""
  3. iFileNo = FreeFile
  4.       'open the file for reading
  5.   Open "C:\WINDOWS\Desktop\History Helper\Backup\1.txt" For Input As #iFileNo
  6. 'change this filename to an existing file!  (or run the example below first)
  7.  
  8.       'read the file until we reach the end
  9.   Do While Not EOF(iFileNo)
  10.     Input #iFileNo, sFileText
  11.       'show the text (you will probably want to replace this line as appropriate to your program!)
  12.     Text2.Text = Text2.Text & sFileText
  13.   Loop
  14.  
  15.       'close the file (if you dont do this, you wont be able to open it again!)
  16.   Close #iFileNo
  17. End If

Can anyone help? Thanks