Saving generated folders after setting properties causes access violation - Advanced Installer Community
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Saving generated folders after setting properties causes access violation

Hi. Novice creating a new Installer project, copying old visual studio 2010 setup project

I'm attempting to add some empty folders, with rules, to 'Files & Folders'.

These should be created under c:\program data\[manufacturer]\[product name]

I've attempted to set the folder properties so that some would be left untouched (config files), others have contents deleted (cached images) when the application is uninstalled.

When I save the aip file, frequently there's an access violation that closes the application. It''s happening often enough to suggest somebody at AI just plays with creating new folders under Common Application Data directory, set properties to delete on uninstall, then save the project in order to duplicate.

In the last instance, when I attempt to reopen the aip file I get the error "Unable to find row with id: in table: Component." and I can't open the file.

I'm attempting to find the error within the aip file so I can delete the section, but I decided to let you know about it.

(I Hope I can find the problem, I've spent hours on this.)
Attachments
PmKioskSetup.aip
Sample aip file
(55.09 KiB) Downloaded 427 times
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Saving generated folders after setting properties causes access violation

I stripped out the folders I added from various places in the aip file.
It might have been a line in the file where I saw that a condition for removing the file was "_" rather than "_1" or similar. I'm guessing that the "_" is stripped off the front, hence the string was empty.
Search for images, html or logfiles which were the 3 subdirectories I tried to get to be removed and you'll see what I mean. As Im new at this I don't yet know how to fill the dialog box that pops up if you look at the condition of removal.
Image attached for the operations tab. On one occasion a "1" was auto inserted in the conditions field, another time nothing was.
Attachments
Untitled.png
Untitled.png (12.2 KiB) Viewed 3737 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Saving generated folders after setting properties causes access violation

Hello,

Thank you for your feedback. We'll start investigating your project and the scenario you followed and let you know if we can isolate the problem.

In the meantime it will be very useful if you could find out a pattern which consistently replicates this issue.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Saving generated folders after setting properties causes access violation

Sorry, I can't reproduce that original problem as I rebuilt the whole project. But the following is similar.

Create a professional project
Add a file "story.txt" to the application folder.
Add a new folder to "Common Application Data" in Files and folders
Select "Properties" from context menu on this
Set Target name: To property [Manufacturer]
Source name: to "ManufacturerName"
Go to operations tab
Check "Remove folder",
"Remove folder only if it is empty"
Component: Select the Manufacturer component (I guessed this as I didnt look at help files, and the default value was Product Information, and I didn't know what this should contain. Manufacturer looked most logical as I thought it meant the component to be uninstalled)
"Remove on Component Uninstall"
Press Ok
Access Violation message then occurs. I can't delete the folder to try again.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Saving generated folders after setting properties causes access violation

Hello,

Thank you for your follow up.

We tested several times your test case but cannot replicate at all the error. Unfortunately without replicating this we can neither further investigate this, nor fix your sample setup project.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”