mike54721
11-16-2007, 09:01 AM
I need to rename a file after (or before) installing it. This file is a main file and is in the archive and also gets shortcuts (quick launch, start menu).
I do it like this right now:
IFileRenamed = SessionVar.Expand("%AppFolder%").."\\IDemo-"..PrepINum()..".exe";
File.Rename(SessionVar.Expand("%AppFolder%").."\\IDemo.exe", IFileRenamed);
I also added an option to run the file after install and I use the new name variable to file.run so this is all working correctly but the problem is that I also need to update the following with the new name, how do I do that?
shortcuts on system
uninstall data
i think there might be more..
I do it like this right now:
IFileRenamed = SessionVar.Expand("%AppFolder%").."\\IDemo-"..PrepINum()..".exe";
File.Rename(SessionVar.Expand("%AppFolder%").."\\IDemo.exe", IFileRenamed);
I also added an option to run the file after install and I use the new name variable to file.run so this is all working correctly but the problem is that I also need to update the following with the new name, how do I do that?
shortcuts on system
uninstall data
i think there might be more..