Media files in app setup

  • Thread starter Thread starter SStory
  • Start date Start date
S

SStory

I have an app that includes media files (graphics) and those included in the
msi setup.

They are not 100% necessary and can change. The problem is if I delete one
of them, then the next time I run my app, it launches windows installer ---I
assume trying to correct the problem.

What should I do in my setup to prevent this?

Thanks,

Shane
 
Shane, to get MSI to not repair select the file in the setup project and
change the file properties Condition = NOT REINSTALL so that the file will
not get reinstalled on a repair and its Transitive = TRUE so that the
condition is re-evaluated.

This will cause the installer to "flash" on the screen after the first time
they are deleted and the repairer is called (either through an advertised
shortcut or reg key). It will check that that the file should not be
reinstalled, not reinstall it and you will not see the reinstaller again.

Todd Derksen
 
Thanks Todd.

I am curious. The bottom line is that I have around 400 jpgs/gifs that my
application uses--media files.

At present I just make some folders under the app root and add the files
there.

This means I would need to go through each of the 400 files one at a time
and set the flags you are discussing.

Is there a better way to install them?

Thanks,

Shane
 
Shane this might not be the answer you are looking for but it definetly
will help.
You can multiselect the files and set their properties, this should save
you considerable amount of time then going through all 400 files
individually.

Todd Derksen
 
Actually it is good enough.
I did discover that when recreating my setup.

For future products, maybe MS should consider a way of not only grouping
them in the file editor but also in the solution explorer, so that instead
of showing 500 files, it could show them as a folder with settings that
could be set for the entire folder for things like media distribution. Just
a thought.

Thanks Todd... this is exactly what I discovered and did. Works great!

Shane
 
Back
Top