Python Forum
Compiling to windows installer
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling to windows installer
#1
Ok, so I have run into an issue that I have not had before. I completed my code and used pyinstaller to compile it to an exe and it runs correctly. Once that was done I used the software Inno to compile it to a windows extracting installer, which I have used for projects before without problem. On this project it seems to complete correctly and no errors with Inno but when I install the program in windows and run it everything works other than it will not allow the program to use the database part of the program. All components of the program have been included in the setup for the windows installer, all images and db along with the exe of course.
I have tried to compile it and then make the installer a number of times with the same result... I even tried a different windows installer program to see if that corrected the problem but it has not.
Any ideas what I should be looking for to correct this problem? Or perhaps a different windows installer program to try?
"Often stumped... But never defeated."
Reply
#2
Resolved... for some reason, although everything worked fine in the IDE and after compiling with pyinstaller, the program seemed to force a part of the code to run when compiled to an installer and then run. I removed one of the conditions for a query and tried to recompile in pyinstaller and then with Innosetup and it works properly now. There must be some reason that it forced the error although I have no idea why.
I did notify the Innosetup software people of the issue it created.
"Often stumped... But never defeated."
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows 3.7.10 Installer bean2099 3 2,324 Jun-21-2021, 06:37 PM
Last Post: snippsat
  Compiling (PyInstaller issues) TheHolyPyGrenade 1 1,881 Apr-11-2021, 08:30 PM
Last Post: snippsat
  Compiling SlicerCAT flaviu2 1 1,805 Sep-21-2020, 08:38 AM
Last Post: buran
  Compiling on win10 ebolisa 1 1,725 Sep-04-2020, 04:39 PM
Last Post: ebolisa
  Error in compiling cython extension on Python 3.6.4 on Windows 8 goldenmean 3 5,699 Jun-05-2019, 09:37 PM
Last Post: Larz60+
  Compiling python CommanderCody66 7 96,541 Apr-19-2019, 08:12 PM
Last Post: snippsat
  Having Trouble Compiling From Source (3.7.2) pnicolosi78 6 8,518 Feb-06-2019, 07:24 PM
Last Post: nilamo
  Compiling a Python Package on Windows nagymusic 2 3,589 Jan-29-2019, 12:08 AM
Last Post: nagymusic
  compiling python using pyinstaller sabeesh90 0 2,635 Aug-16-2018, 09:58 AM
Last Post: sabeesh90
  Interpeter / Installer help AMSSINC5 3 3,356 Aug-11-2017, 09:10 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020