Hi
If build the proyect with rename resource files and get to copy one image of other folther... this not work.
Exmaple:
File.Copy(_SourceFolder.."\\Autoplay\\Images\\imag e.ico", _SourceFolder, ...)
This copy ap16.dat NOT image.ico.
Professional Software Development Tools
Hi
If build the proyect with rename resource files and get to copy one image of other folther... this not work.
Exmaple:
File.Copy(_SourceFolder.."\\Autoplay\\Images\\imag e.ico", _SourceFolder, ...)
This copy ap16.dat NOT image.ico.
autoplay media studio encrypt all data files you put in autoplay folder during design time for example if you have an image name as previous it will be automatically renamed to ( ap x.dat ) while x is the number of the resource while all other resources will be transformed to this extension as well including Video and Audio folders but not Docs folder, Scripts folder or Plugins folder ,,,
But you can overcome this by two ways ( maybe there's more but it's only what i know about ):
1* Put such a data :that you will nedd to copy during runtime after building the project in a folder outside the autoplay media studio folder for ex :
and the won't be transformed during building proccesCode:_SourceFolder.."Images\\Imagee.ico"
2* During building wizard uncheck the option Encrypt .............
and it will do the same
No, sorry... this work in AMS7.5.
This is a bug of AMS8.
Hi Tomasin,
I have a question regarding this: in your example is ap16.dat the renamed image.ico file? Does the image.ico exist? Is it part of your renamed resource files?
Perhaps you could post a sample project that shows this.
mark.
MSI Factory The Next Generation Intelligent Setup Builder
Proyect not compiled:
Exist this file:
Autoplay\images\image.ico
Proyect compiled (renaming resource files).
get to copy Autoplay\images\image.ico to other folder
>> this action copy ap16.dat, not rename correctly to image.ico.
This is documented in the help file and it is not a bug:
You should useIf a resource file path is composed of variables that are concatenated together to form a path to a resource file, the file may not be found.
UlrichCode:File.Copy("AutoPlay\\Images\\image.ico", ...
Tomasin is right
i put a image on the page and used its direct path in the File.Copy action, renamed "AutoPlay" folder to "Data" when i compiled and it copied "ap3.dat" to my desktop!
i changed the extension and the image file is intact, it seems that AMS is not renaming the file after its extracted
see my example, compile the project and click the button
Open your eyes to Narcissism, Don't let her destroy your life!!
Hi Everyone,
As far as I can tell this is all by design. Basically what is happening is the file: Image.ico is being renamed to ap16.dat in the images folder. And during the rename process the action:
Is being changed to:Code:File.Copy(_SourceFolder.."\\Autoplay\\Images\\image.ico", _SourceFolder, ...)
Because if it was not, then it would fail, since image.ico no longer exists.Code:File.Copy(_SourceFolder.."\\data\\ap16.dat", _SourceFolder, ...)
As Ulrich said if you want the original filename in your destination use:
mark.Code:File.Copy(_SourceFolder.."\\Autoplay\\Images\\image.ico", _DestinationFolder.."\\image.ico", ...)
MSI Factory The Next Generation Intelligent Setup Builder
Of Course....... ignore me, its been a long hard day, i only ran a quick test and dident think of adding the actual output filename, it does in fact make perfect scene, now id better get some sleep before i go making another amateur bloomer!
Open your eyes to Narcissism, Don't let her destroy your life!!
Aja
This is the problemFile.Copy(_SourceFolder.."\\Autoplay\\Images\\imag e.ico", _DestinationFolder.."\\image.ico", ...)sorry
Thanks to all![]()