
Bytessence Install Maker 5.40 - (09Jan2013) - new release
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
I have a weird issue.
I have two vesions of my application. Both would install in:
C:\Program Files\Blue Mesa Software\XXXXX directory
XXXXX would be named for the program... One program has a directory named BMRPAIO and one has a directory named BMRPOS.
When I run 1 install it insttalls fine... If I then run the second install (which would install into a different SUB DIRECTORY, it delets ALL the files from the FIRST install except the uninstall program (but it does delete the uninstall.dat)
I have my BIM files... I cannot figure it out!
R
I have two vesions of my application. Both would install in:
C:\Program Files\Blue Mesa Software\XXXXX directory
XXXXX would be named for the program... One program has a directory named BMRPAIO and one has a directory named BMRPOS.
When I run 1 install it insttalls fine... If I then run the second install (which would install into a different SUB DIRECTORY, it delets ALL the files from the FIRST install except the uninstall program (but it does delete the uninstall.dat)
I have my BIM files... I cannot figure it out!
R

Fixed without knowing
. I think I know why... (the damned "uninstall older versions option") This new version should fix the problem
.


Let me know if it doesn't go. In this case, i'll get "me hammer" ready.-Added Hungarian translation (thanks to András Nagy)
-Now each version of BIM uses it's own configuration file (because of the encoding)
-Rewrote and optimized massive parts of the uninstaller, it's now using a different approach to remove the programs and also decreased it's size. Also, the folders are correctly deleted now and all the traces are cleaned
-Fixed some glitches in the interface (some labels were small, truncating the text)
-Made the uninstallation support optional (for releasing quick updates)
-The "Classic" graphics set is loaded by default (making it easy to quickly make a project)
-Made minor cosmetic improvements in the stub (flattened some controls, morphed some lists to match the color of the window)
-Removed the 'Uninstall older versions' option (incompatibility with older versions, inneficient)
-Added rollback feature: When the user cancels the installation, the files and folders that were already installed are cleaned up before the installer exits to avoid useless space usage
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Hi guys,
BIM 3.6 has been released
.
Changes in this version:
Cheers!
BIM 3.6 has been released

Changes in this version:
Link: http://www.bytessence.com/bim.html- Fixed bug in uninstaller which did not remove the start menu internet shortcut
- Fixed bug causing the uninstaller not to delete the main program folder in Program Files (the handle was not closed)
- Resized settings window for better visibility
- Added Russian, Turkish, French, Kazakh and Greek translations in the package
Cheers!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Hmm... I think it can
. The uninstaller/stub will work only if the user allows admin priviledges to the program. It should delete it, haven't got any complains about this so far. The problem is that I don't have any way to try myself as I don't have vista (i think it wouldn't even run on my PC lol). It would be great if someone using it would try this and report back. On XP SP2 the folder is removed.

None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
I'll check it out on Vista. I've written an installer/uninstaller myself, but the code it uses to delete
those entries doesn't work on Vista
It works ok on XP though, but I need to make it work on Vista too. The code above fails silently.
those entries doesn't work on Vista

Code: Select all
delayExecution(msec)
programGroup.s = getSpecialFolder(#CSIDL_PROGRAMS) + programName + "\"
deleteDirectory(programGroup, "", #PB_FILESYSTEM_RECURSIVE | #PB_FILESYSTEM_FORCE)
Oh in that case... There must be something wrong there. In BIM, all the installed folders (including the start menu one) are added to a list. Then the list is being sorted by depth, from the most far one to the most close (short). Then I make a loop, delete the files first then loop again and remove the directories. I don't use PB's command for deleting, but rather this api:
MSDN says for RemoveDirectory:
This will close any handle to the specified folder. Then you can try to delete it again and see what heppends
.
[Edit]
Note that the directory must be empty prior to deletion, that's why I remove the files first then the empty dirs.
Code: Select all
SetFileAttributes_(Folders()\Path,#FILE_ATTRIBUTE_NORMAL)
RemoveDirectory_(Folders()\Path)
Another thing is to make sure your program doesn't use the actual folder you're trying to delete:Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The RemoveDirectory function marks a directory for deletion on close. Therefore, the directory is not removed until the last handle to the directory is closed.
Code: Select all
SetCurrentDirectory(GetPathPart(ProgramFilename()))

[Edit]
Note that the directory must be empty prior to deletion, that's why I remove the files first then the empty dirs.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Oh in that case... There must be something wrong there
Code: Select all
delayExecution(msec)
programGroup.s = getSpecialFolder(#CSIDL_PROGRAMS) + programName + "\"
deleteDirectory(programGroup, "", #PB_FILESYSTEM_RECURSIVE | #PB_FILESYSTEM_FORCE)
Works as advertised now

Hi,
A new version of BIM is now online.
What's new in version 3.7:
A new version of BIM is now online.
What's new in version 3.7:
The download link is in the fist post. Let me know if there are any problems.-Cleaned up and optimized the source code
-Re-designed the event handlers, now BIM and the generated installers are responding much better while working
-Added option to disable the splash logo upon startup
-Added Windows Server 2008 on the OS list and separated some other OS's
-Added icons on some of the buttons
-Added remaining time indicators for BIM, the installer and uninstaller
-Added improved progress calculation
-Added new task dialogs
-Added environment variable editing
-Added configuration file editing (ini)
-Added gradient color background window option to generate old-style installers
-Added a new, separate unpacker tool for the created installers
-Added a new, automated language management system
-Added more error checking
-Fixed some image memory leaks
-Fixed erroneous .NET Framework detection
-Fixed the installer font size
-Fixed uninstaller that was forgetting to delete the script in the Temp folder
-Fixed uninstaller bug that was preventing the removal of read-only files
-Fixed installer rollback action when cancelling the installation
-Fixed optional installer creation option that was ignored
-Fixed the path tokenizer that was failing to return a correct value on Windows NT4
-Improved NT4 system support
-Converted all the internal icons to 256 colors so the program looks better on older systems
-The compilation files are now placed in the Temp folder instead of AppData
-Speeded up some parts
-Re-designed all the wizard graphics
-Removed UPX executable from the package (not necessary anymore)
-Removed HTTP download task (useless)
-Removed custom icon choosing
-Re-wrote some parts of the help file
-Fixed many other small issues
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
BIM 3.8 has been released today. I have added some new routines to update version information and icon for the exe (but this time the methods are custom, i didn't use API anymore because of compatibility problems on older OS's). I hope there won't be any problems
.
Changes in this version:
The download link is in the first post.

Changes in this version:
Please let me know if you stumble across a bug.- Added version information updating capability, each executable package will carry your product name, version, company name, copyright, etc. and will show up in the "Version" tab (on all operating systems)
- Added main icon changing capability for the resulting executable (on all operating systems)
- Added new German translation in the package
- Changed the startup splash-screen. You can now also click on it to close it
- The uninstaller now supports all the string variables that the installer supports
- Reintegrated UPX compression (the stub cannot be pre-compressed anymore because of the inline resource patching)
- Fixed a bug in the CLI compiler (the OS detection routine)
The download link is in the first post.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Wow, this looks amazing, nice work Inf0Byt3!
I remember looking around a few installers a while back, I think Clickteam made one that created patches so you could just patch an exe rather than reinstalling new versions of software. Will your program support this at some point maybe?
Hehe, I hope I finish something soon so I can use this!
I remember looking around a few installers a while back, I think Clickteam made one that created patches so you could just patch an exe rather than reinstalling new versions of software. Will your program support this at some point maybe?

Hehe, I hope I finish something soon so I can use this!

ThanksWow, this looks amazing, nice work Inf0Byt3!

I wanted to add this in the past but couldn't find a suitable diff algorithm at the time. The classic byte-byte scanning system is too slow and doesn't cut back too much on size. I'll make some research about this.I remember looking around a few installers a while back, I think Clickteam made one that created patches so you could just patch an exe rather than reinstalling new versions of software. Will your program support this at some point maybe?
Hehe, I hope I finish something soon so I can use this!![]()
Thanks for the suggestion.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
After many months of coding and debugging I am glad to announce that BIM has reached version 4.0. There are many new features inside this version (like no more temp files for installers, redesigned interface, new code and many others) and I hope you'll like it. You can see some new screenshots on the first page of this thread.
Changelog for v4.0:
You can download it from my webpage (scroll down for the link):
http://bytessence.com/bim.html
As always, please contact me if you spot a bug or have a suggestion.
Cheers!
Changelog for v4.0:
A good thing is that from now on the translations for the main program and the installer module are separated, so if you have free time you can translate just the installer (~100 short lines).-All program code has been rewritten for better speed and usability
-Major interface enhancements
-Added dedicated task dialogs (less clutter)
-Added new advanced tasks for the uninstaller (delete files and registry entries)
-Added better .NET Framework detection
-Added a dedicated dialog for the building process
-Added a new step in the installer in which the user can review the settings
-Added a new '<UserData>' variable
-Added a new way to choose files for the advanced tasks (dedicated dialog)
-Added a new way to choose path variables
-Added redesigned graphics for the installer
-Added a 'Test installer' button for running the generated installer
-The main program and installer localization files are separated now
-The installer executable icon can now have multiple layers (better look on Vista/XP)
-The title of the installer window can be customized
-The compression level can be adjusted properly (5 steps available)
-The installer can check for open windows and prompt the user to close them
-The installation path can now be read from a registry value
-The installer can find previous installations and prompt for removal before installation
-The background window now also accepts pictures (will be scaled automatically)
-The tasks can be restricted to run only on some operating systems
-The tasks can use external icons (run and shortcut tasks)
-The project can be saved without having to choose the file every time
-The uninstaller can skip certain files from uninstallation
-The programs can be run before or after installation / uninstallation of the files
-Removed the need for temporary files during installation
-Removed unicode support (hard to maintain)
-Removed the splash screen
-Removed 'all users' path variables
-Removed NT service and other tasks (they were of no real use)
-Fixed several bugs found in the previous versions
You can download it from my webpage (scroll down for the link):
http://bytessence.com/bim.html
As always, please contact me if you spot a bug or have a suggestion.
Cheers!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)